Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Failed to parse export * as default from #469

Closed
loganfsmyth opened this issue Apr 13, 2017 · 0 comments · Fixed by #474
Closed

Failed to parse export * as default from #469

loganfsmyth opened this issue Apr 13, 2017 · 0 comments · Fixed by #474

Comments

@loganfsmyth
Copy link
Member

require('babylon').parse('export * as default from "foo";', {
  plugins: ['exportExtensions'],
  sourceType: "module",
})

Current Behavior

throws

SyntaxError: Unexpected token (1:12)

Expected Behavior

Should parse just like export * as foo from "foo"; does.

Filed from tc39/proposal-export-ns-from#1 which I totally forgot about.

@hzoo hzoo added the Has PR label Apr 18, 2017
benjamn added a commit to benjamn/acorn that referenced this issue Apr 24, 2017
This is equivalent to

  import * as _temp$0 from "module"
  export { _temp$0 as default }

Related Babylon issue:
babel/babylon#469 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants