Replies: 1 comment
-
|
Please use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
A and B module build as a chunk,and splitChunks set chunk is 'all'. But import by two entry, one is used async way, but another is used sync way. It will product one chunk with a hash, but async way has another hash without chunk.
just like this:
optimization: { namedModules: true, namedChunks: true, moduleIds: 'hashed', chunkIds: 'named', splitChunks: { cacheGroups: { 'react-data': { chunks: 'all', test: module => { return /[\\/](redux|react-redux|react-router-redux|redux-immutable|redux-thunk|immutable|immutablediff|immutablepatch)([\\/]|$)/.test(module.context); }, name: 'vendor-react-data', enforce: true, priority: 10, reuseExistingChunk: true } } } }webpack version: "webpack": "4.16.0",
What is the expected behavior?
I think, it should be product one chunk and hash be consistent
Other relevant information:
webpack version: "4.16.0"
Node.js version:
Operating System:
Additional tools:
Beta Was this translation helpful? Give feedback.
All reactions