You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
export * as default from "module" syntax should work as per ECMA-262 #39769
Search Terms:
ESModule, export star as default, "export * as default from"
Expected behavior: export * as default from "module" should export the namespace of "module" as the default export.
This is valid ES Module syntax from this stage-4 proposal. See the test in test-262.
I also tested this syntax in Chrome and it was supported.
Actual behavior:
You get the following errors:
"Cannot find name 'from'."
"Identifier expected. 'default' is a reserved word that cannot be used here."
Activity
DanielRosenwasser commentedon Jul 27, 2020
CC Wenlu Wang (@Kingwl) in case you want to take this on as a follow-up to #34903
Kingwl commentedon Jul 29, 2020
Take a look soon.
DanielRosenwasser commentedon Aug 10, 2020
Thanks Wenlu Wang (@Kingwl)!