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

ES2015 export syntax issue #30

Closed
Guibod opened this issue Jan 24, 2017 · 2 comments
Closed

ES2015 export syntax issue #30

Guibod opened this issue Jan 24, 2017 · 2 comments

Comments

@Guibod
Copy link
Contributor

Guibod commented Jan 24, 2017

Why do you use this pattern:

export Status from './Status.js'

instead of

export { default as Status } from './Status.js';

To my comprehension, the first syntax is not supported by native ES2015 and requires you to enable plugins such as this one: https://babeljs.io/docs/plugins/syntax-export-extensions/

I'm pretty lost in Babel related subjects, and i'm unable to use your tool because the extract is not valid. I am wrong ?

@gajus
Copy link
Owner

gajus commented Jan 24, 2017

There is no good reason.

I would accept a PR.

@Guibod
Copy link
Contributor Author

Guibod commented Jan 27, 2017

Here you go. :)

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