Move runtimeChunk optimisation to production webpack config (#18982)

GitOrigin-RevId: 99b0923cee62118fbd69e234c16bf1eb0ace6abc
This commit is contained in:
Alf Eaton 2024-08-01 09:38:44 +01:00 committed by Copybot
parent 0e9bb32016
commit d7ded4d0cb
2 changed files with 4 additions and 6 deletions

View file

@ -93,10 +93,4 @@ module.exports = merge(base, {
preset: 'minimal',
colors: true,
},
optimization: {
runtimeChunk: {
name: 'runtime',
},
},
})

View file

@ -110,6 +110,10 @@ module.exports = {
splitChunks: {
chunks: 'all', // allow non-async chunks to be analysed for shared modules
},
// https://webpack.js.org/configuration/optimization/#optimizationruntimechunk
runtimeChunk: {
name: 'runtime',
},
},
// Define how file types are handled by webpack