diff --git a/scripts/bundles/plugins/parse5-plugin.ts b/scripts/bundles/plugins/parse5-plugin.ts index f6bc015f311..ccb1fac7b73 100644 --- a/scripts/bundles/plugins/parse5-plugin.ts +++ b/scripts/bundles/plugins/parse5-plugin.ts @@ -35,7 +35,8 @@ export function parse5Plugin(opts: BuildOptions): Plugin { } async function bundleParse5(opts: BuildOptions) { - const cacheFile = join(opts.buildDir, 'parse5-bundle-cache.js'); + const fileName = `parse5-${opts.parse5Verion.replace(/\./g, '_')}-bundle-cache.js`; + const cacheFile = join(opts.buildDir, fileName); try { return await fs.readFile(cacheFile, 'utf8');