Replies: 2 comments 8 replies
-
You can use https://github.com/webpack/webpack/blob/main/lib/ids/SyncModuleIdsPlugin.js to store ids locally (it will look like a map where key is module identifier) |
Beta Was this translation helpful? Give feedback.
0 replies
-
i try this method, but it looks like moduleId with name rather than the chunkId with name |
Beta Was this translation helpful? Give feedback.
8 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.
-
As the docs, the config of optimization.chunkId/moduleId, we can set the value of 'deterministic' which is good for long term caching. And the value of 'named' is more readable.
In my project, we prepare to use the deterministic because of the term caching. But, when we want to find the error stack online, or find which module/file had included the bundle.js (link 125328.ajshdjkashd.js). The 'determistic' property seems like is difficult to find it.
I try to use the 'DeterministicChunkIdsPlugin' , but it looks like doesn't hav the relationship about ids and named. Also, I try to write a plugin, use the chunkIds/afterOptimizeChunks/optimizeChunkIds to get the relationship, but the callback params 'chunks' also doesn't have the relationship.
Could u help me? Or give me some advice?
I want to get the relationship of determisticId and name when I set the value 'determistic'.
thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions