tc39 / proposal-defer-import-eval

A proposal for introducing a way to defer evaluate of a module
https://tc39.es/proposal-defer-import-eval
MIT License
208 stars 12 forks source link

Add `export defer * as x from "./x"` #26

Closed nicolo-ribaudo closed 11 months ago

nicolo-ribaudo commented 11 months ago

Given that export * as x from "./x" is already valid, this PR adds export defer * as x from "./x" as a shorthand for import defer * as __unique_x from "./x"; export { __unique_x as x };.

The reason it was not included already is just that I forgot about it while writing the spec text. This addresses the second point of https://github.com/tc39/proposal-defer-import-eval/issues/18.