Skip to content

Commit

Permalink
Fix a binding issue with Webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Feb 26, 2018
1 parent 175b023 commit b978b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ PermissionsOutputPlugin.prototype.apply = function (compiler) {
}
}

const webpackTap = compiler.hooks && compiler.hooks.done && compiler.hooks.done.tap;
const webpackTap = compiler.hooks && compiler.hooks.done && compiler.hooks.done.tap.bind(compiler.hooks.done);

if (webpackTap) {
webpackTap('WebpackPermissionsPlugin', changeFilePermissions);
Expand Down

0 comments on commit b978b18

Please sign in to comment.