generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Consider this example:
// entrypoint.js
import { foo } from "./a.js";// a.js
export * from "./b.js";// b.js
export defer { foo } from "./foo.js";
export defer { bar } from "./bar.js";Will it load bar.js? We have two possible answers:
- Yes:
export * fromis loading all the bindings from./b.js, so it's loadingbar. It's equivalent toexport { foo, bar } from - No: The
barbinging is not actually listed anywhere. Deferred re-exports are only loaded when the relative binding is explicitly present in a{ ... } fromlist.
Metadata
Metadata
Assignees
Labels
No labels