3.0.0-rc.5
https://github.com/PanJiaChen/chunk-test
I only added one file, so the final result should not change other pages.xxx.js.
About.vue js file id has been changed. Caused the file moduleId behind it to change.

Every time I add a new page, it may cause the cache of other pages to become invalid.
webpack records can solved this.
Note to docs: as reference for PR: https://webpack.js.org/configuration/other-options/#recordspath
The question is, where do we put this? It feels like something we should keep abstracted away, but the webpack docs recommend adding it to version control, which means the user has to be aware of it.
The records file is only used for human inspection and not used during runtime... I don't think there really is a way to fix this in webpack at the moment, maybe you should open an issue for webpack instead.
Before the official release of webpack5, I found that NamedChunksPlugin can be used to solve this problem.
new webpack.NamedChunksPlugin(chunk => {
  if (chunk.name) {
    return chunk.name
  }
  return Array.from(chunk.modulesIterable, m => m.id).join('_')
})
@PanJiaChen good find!
Most helpful comment
Before the official release of
webpack5, I found thatNamedChunksPlugincan be used to solve this problem.