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

import and export support #82

Open
LuoZijun opened this issue Jun 11, 2018 · 4 comments
Open

import and export support #82

LuoZijun opened this issue Jun 11, 2018 · 4 comments

Comments

@LuoZijun
Copy link
Contributor

  1. see import
  2. see export
@maciejhirsz
Copy link
Member

👍

This will also need context-aware statement parsing mentioned here, since imports and exports can only happen at the top scope.

@LuoZijun
Copy link
Contributor Author

since imports and exports can only happen at the top scope

I can not see this define in MDN, Can you give me some link about this infomation ?

@maciejhirsz
Copy link
Member

It's in the spec for Module in ES6. ImportDeclaration and ExportDeclaration can be only done at the top level of a module.

@LuoZijun
Copy link
Contributor Author

@maciejhirsz Thank you :)

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

3 participants