From 48b77c6dbb3df6dc5471d4e5d69bfd85b2c20580 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 4 Aug 2020 10:56:23 -0500 Subject: [PATCH] chore(parse5): add version to parse5 cache file --- scripts/bundles/plugins/parse5-plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');