-
Notifications
You must be signed in to change notification settings - Fork 30k
Closed
Milestone
Description
Bug report
Describe the bug
After upgrading from 9.0.4 to 9.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 correctly
Example
I've created a simple Codesandbox that just adds a single import(). It correctly chunks and loads the chunk on 9.0.4.
See the Network Requests.
Expected behavior
When using the dynamic imports, they should be extracted into chunks by Webpack.