-
Notifications
You must be signed in to change notification settings - Fork 907
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
Dynamic import parsing throws 'import' and 'export' may only appear at the top level #809
Comments
Apparently this is again an npm issue. @marijnh Maybe we can come up with a workaround for these issues? When developing plugins it's also pretty difficult to make sure that all plugins are using the same acorn tree. Putting |
I think the |
yep |
The following change is throwing an error for dynamic module imports.
. Setting
topLevel
flag to null in parseStatement function which raises theDynamic module import use to work in 5.7.3 with same settings.
I'm using angular-cli to compile my app which updated webpack to 4.29.9 with new acorn changes. Not sure if this is an angular-cli, webpack or acorn issue but after debugging I noticed these differences in acorn.
The text was updated successfully, but these errors were encountered: