Closed red-meadow closed 10 months ago
This commit was supposed to fix the bug described in #7 : export { default as XXX } from 'yyy' syntax not working when used in a Meteor package.
export { default as XXX } from 'yyy'
But it turns out that - even with this change - the syntax only works if there is at least one normal export (not re-export) in the same file.
How to repoduce:
Run examples/vue project. It starts without errors.
examples/vue
In test:modules/index.js, comment all lines except this one:
test:modules/index.js
export { default as ReExportedDefault, other, subOther } from './other'
There is an error in the console.
Uncomment the 1st line: export const A = 'A'. No errors.
export const A = 'A'
My case: I cannot use rdb:svelte-meteor-data package because its index.js contains a single re-export of default export.
rdb:svelte-meteor-data
index.js
This commit was supposed to fix the bug described in #7 :
export { default as XXX } from 'yyy'
syntax not working when used in a Meteor package.But it turns out that - even with this change - the syntax only works if there is at least one normal export (not re-export) in the same file.
How to repoduce:
Run
examples/vue
project. It starts without errors.In
test:modules/index.js
, comment all lines except this one:There is an error in the console.
Uncomment the 1st line:
export const A = 'A'
. No errors.My case: I cannot use
rdb:svelte-meteor-data
package because itsindex.js
contains a single re-export of default export.