From 294679fb5f911792270b06c3550000bc69f16ccb Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Thu, 16 Mar 2023 14:19:04 +0100 Subject: [PATCH] Simplify chunk renaming If a package results in two chunks with the same name, then we should consider changing the build to create a single chunk for the given module --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index afb8d7e80..97656497f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -21,7 +21,7 @@ const getChunkFileName = (chunkInfo, extension) => { // index files result in chunks named simply 'index', so we rename them to include the package name if (chunkInfo.name === 'index') { const packageName = chunkInfo.facadeModuleId.split('/').at(-2); // assume index file is under the root folder - return `${packageName}.index.${extension}`; + return `${packageName}.${extension}`; } return `[name].${extension}`; };