-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
9.0.5 Dynamic imports not extracted to chunks #8550
Milestone
Comments
Traced this down:
|
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
After upgrading from
9.0.4
to9.0.5
,dynamic(() => import())
are now all merged into commons.js, and no chunks are exported. Before it would create a new chunk for each.It only happens when building for prodution with
target: serverless
. Running in development, the chunks are still generated correctlyExample
I've created a simple Codesandbox that just adds a single
import()
. It correctly chunks and loads the chunk on9.0.4
.See the Network Requests.
Expected behavior
When using the dynamic imports, they should be extracted into chunks by Webpack.
The text was updated successfully, but these errors were encountered: