Skip to content

Commit

Permalink
Fix "Tapable.apply is deprecated" warning (fixes #161) (#162)
Browse files Browse the repository at this point in the history
Fix ProgressPluginFactory and CachePluginFactory
  • Loading branch information
amakhrov authored and danez committed May 14, 2018
1 parent 6542f20 commit a0c2e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/CachePluginFactory.js
Expand Up @@ -12,7 +12,7 @@ class CachePluginFactory {
if (!this.plugins[target]) {
this.plugins[target] = new CachePlugin();
}
compiler.apply(this.plugins[target]);
this.plugins[target].apply(compiler);
if (this.dependencies[target]) {
compiler._lastCompilationFileDependencies = this.dependencies[target].file;
compiler._lastCompilationContextDependencies = this.dependencies[target].context;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ProgressPluginFactory.js
Expand Up @@ -8,7 +8,7 @@ class ProgressPluginFactory {
}

addPlugin(compiler, options) {
compiler.apply(new ProgressPlugin({ profile: options.profile }));
(new ProgressPlugin({ profile: options.profile })).apply(compiler);
}
}

Expand Down

0 comments on commit a0c2e6c

Please sign in to comment.