Skip to content

Commit

Permalink
chore(parse5): add version to parse5 cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Aug 4, 2020
1 parent d00ddeb commit 48b77c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bundles/plugins/parse5-plugin.ts
Expand Up @@ -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');
Expand Down

0 comments on commit 48b77c6

Please sign in to comment.