You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like import() is still in stage 3 of the standardization process. ESLint has a policy of only implementing features in their parser once they're in stage 4.
So, standard will support this eventually, but not until the spec is stable.
In my code for code-splitting, I'm getting:
index.js:156:9: Parsing error: 'import' and 'export' may only appear at the top level
However, 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
The text was updated successfully, but these errors were encountered: