Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNested 'import' with code splitting support #751
Comments
This comment has been minimized.
This comment has been minimized.
|
It looks like So, You can try installing this babel plugin (https://babeljs.io/docs/plugins/syntax-dynamic-import/) and tell standard to use Babel as it's parser if you want to be on the bleeding edge. To do that:
|
feross
closed this
Jan 19, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks for the speedy response! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
hanford commentedJan 19, 2017
•
edited
In my code for code-splitting, I'm getting:
index.js:156:9: Parsing error: 'import' and 'export' may only appear at the top levelHowever, according to the webpack2 guides and the proposed ES6 modules spec, import can in fact be nested.
https://webpack.js.org/guides/migrating/#code-splitting-with-es2015