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

Grammar: Support export * as namespace from #5393

Open
eyun-tv opened this issue Jan 19, 2022 · 1 comment
Open

Grammar: Support export * as namespace from #5393

eyun-tv opened this issue Jan 19, 2022 · 1 comment

Comments

@eyun-tv
Copy link

eyun-tv commented Jan 19, 2022

as title

not support export * as recbar from './recbar.coffee'

@GeoffreyBooth
Copy link
Collaborator

GeoffreyBooth commented Jan 19, 2022

It looks like export * as namespace from was added in ES2020: https://github.com/tc39/proposal-export-ns-from, mdn/content#11293.

In the meantime you can do what Babel does:

# export * as namespace from 'pkg'

import * as _namespace from 'pkg'
export { _namespace as namespace }

@GeoffreyBooth GeoffreyBooth changed the title not support export * as recbar from './recbar.coffee' Grammar: Support export * as namespace from Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants