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

SyntaxError: unknown: 'import' and 'export' may only appear at the top level #3

Open
zanona opened this issue May 20, 2016 · 0 comments

Comments

@zanona
Copy link

zanona commented May 20, 2016

Hey @orlin,
I was wondering if you had any issues running code like:

(function () { import m from "moment"; }())

Where it seems Babel will still complain about it even using the mod version of es2015?
Perhaps this code isn't supposed to work in any circumstance and I am missing the real application of {loose: 'es6.modules'}?

If you could please let me know your thoughts it would be appreciated.
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant