Skip to content

No support for export default from "foo" #160

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

Closed
lily-mara opened this issue Feb 11, 2019 · 5 comments
Closed

No support for export default from "foo" #160

lily-mara opened this issue Feb 11, 2019 · 5 comments
Assignees
Milestone

Comments

@lily-mara
Copy link
Contributor

Babel provides the module @babel/plugin-proposal-export-default-from that supports the syntax export default from "foo". Swc currently does not support this syntax.

error: Expected Semi, got Some(Str { value: Atom('foo' type=inline), has_escape: false })
 --> test.js:1:21
  |
1 | export default from "foo";
  |                     ^^^^^
@kdy1 kdy1 self-assigned this Feb 12, 2019
@kdy1 kdy1 closed this as completed in #168 Feb 12, 2019
@kdy1 kdy1 added this to the v1.0.6 milestone Feb 12, 2019
@kdy1
Copy link
Member

kdy1 commented Feb 12, 2019

Fixed with [email protected]

@joaomilho
Copy link

Latest it 1.0.45, any timeline for a release?

@kdy1
Copy link
Member

kdy1 commented Jul 16, 2019

@joaomilho
It is already released. You have to specify parser: { syntax: "ecmascript", exportDefaultFrom: true } to use it.

@joaomilho
Copy link

k, will try

@swc-bot
Copy link
Collaborator

swc-bot commented Oct 29, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants