Skip to content

Commit 3d99168

Browse files
committed
remove unused code, add todo comment
1 parent 46432c4 commit 3d99168

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/CachePlugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ class CachePlugin {
1313
}
1414

1515
apply(compiler) {
16-
const cacheMap = new Map();
17-
cacheMap.set(compiler, this.cache);
1816
if(Array.isArray(compiler.compilers)) {
1917
compiler.compilers.forEach((c, idx) => {
2018
c.apply(new CachePlugin(this.cache[idx] = this.cache[idx] || {}));
2119
});
2220
} else {
2321
const registerCacheToCompiler = (compiler, cache) => {
2422
compiler.plugin("this-compilation", compilation => {
23+
// TODO remove notCacheable for webpack 4
2524
if(!compilation.notCacheable) {
2625
compilation.cache = cache;
2726
compilation.plugin("child-compiler", (childCompiler, compilerName, compilerIndex) => {

0 commit comments

Comments
 (0)