Switch to using a common runtime chunk rather than locales

This commit is contained in:
Claire
2023-06-10 17:43:13 +02:00
parent 8c26d49cbd
commit 34efd1a24c
6 changed files with 5 additions and 28 deletions

View File

@ -47,7 +47,6 @@ function reducePacks (data, into = {}) {
}
const entries = Object.assign(
{ locales: resolve('app', 'javascript', 'locales') },
reducePacks(core),
Object.values(flavours).reduce((map, data) => reducePacks(data, map), {}),
);
@ -67,7 +66,7 @@ module.exports = {
optimization: {
runtimeChunk: {
name: 'locales',
name: 'common',
},
splitChunks: {
cacheGroups: {