coffeescript icon indicating copy to clipboard operation
coffeescript copied to clipboard

Grammar: Support `export * as namespace from`

Open eyun-tv opened this issue 3 years ago • 1 comments

as title

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

eyun-tv avatar Jan 19 '22 10:01 eyun-tv

It looks like export * as namespace from was added in ES2020: https://github.com/tc39/proposal-export-ns-from, https://github.com/mdn/content/pull/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 avatar Jan 19 '22 19:01 GeoffreyBooth