Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily remove export defer * as x from "x" #32

Merged

Conversation

nicolo-ribaudo
Copy link
Member

#30 and #31, that implement more general "optional/deferred re-exports" with tree-shaking capabilities, give two different meaning to export defer * as x from "x":

Due to this difference, for now it's better to remove export defer * until its semantics are settlet, together with the other export defer/ export optional cases. I will include a revert for this commit in those two PRs.

\tc39#30 and tc39#31, that implement more general "optional/deferred
re-exports" with tree-shaking capabilities, give two different
meaning to `export defer * as x from "x"`:
- in tc39#30, `export defer * as x from "x"` unconditionally loads  `"x"`,
  and defers it's execution until when the namespace is used
- in tc39#31, it only loads `x` if some module is actually importing `{ x }`
  from this one, and then defers its execution

Due to this difference, for now it's better to remove `export defer *`
until its semantics are settlet, together with the other `export defer`/
`export optional` cases. I will include a revert for this commit in
those two PRs.
@nicolo-ribaudo nicolo-ribaudo merged commit 9622a80 into tc39:main Mar 22, 2024
@nicolo-ribaudo nicolo-ribaudo deleted the temp-remove-export-defer-ns branch March 22, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants