From 5af8ffc17df74df4e7d77bdc0764f82c84d63125 Mon Sep 17 00:00:00 2001 From: Anton Veselev Date: Sat, 9 Mar 2024 15:09:32 +0000 Subject: [PATCH] worker chunk names --- build/webpack/optimization.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/webpack/optimization.js b/build/webpack/optimization.js index 421f2876..fb37cbec 100644 --- a/build/webpack/optimization.js +++ b/build/webpack/optimization.js @@ -64,7 +64,9 @@ module.exports = isDev => ({ // .identifier() // .split('/') // .reduceRight(item => item); - const allChunksNames = chunks.map(item => item.name).join('~'); + const allChunksNames = chunks + .map(item => item.name || item.debugId) + .join('~'); // return `${cacheGroupKey}--${allChunksNames}--${moduleFileName}`; // return `${cacheGroupKey}--${allChunksNames}`; return `vendors-${allChunksNames}`;