Skip to content

Commit

Permalink
fix: invalidate cache after changing node version
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode authored and evilebottnawi committed Feb 25, 2019
1 parent 6abc66c commit 675edfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -232,6 +232,7 @@ class TerserPlugin {
if (this.options.cache) {
const defaultCacheKeys = {
terser: terserPackageJson.version,
node_version: process.version,
// eslint-disable-next-line global-require
'terser-webpack-plugin': require('../package.json').version,
'terser-webpack-plugin-options': this.options,
Expand Down

0 comments on commit 675edfd

Please sign in to comment.