Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyrkan committed Dec 3, 2020
1 parent d576b21 commit b292e76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/webpack/delete-unused-entries-js-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

'use strict';

const webpack = require('webpack');

function DeleteUnusedEntriesJSPlugin(entriesToDelete = []) {
this.entriesToDelete = entriesToDelete;
}
Expand Down Expand Up @@ -54,10 +52,12 @@ DeleteUnusedEntriesJSPlugin.prototype.apply = function(compiler) {
});
};

compiler.hooks.compilation.tap('DeleteUnusedEntriesJSPlugin', function (compilation) {
compiler.hooks.compilation.tap('DeleteUnusedEntriesJSPlugin', function(compilation) {
compilation.hooks.additionalAssets.tap(
'DeleteUnusedEntriesJsPlugin',
function() { deleteEntries(compilation) }
function() {
deleteEntries(compilation);
}
);
});
};
Expand Down

0 comments on commit b292e76

Please sign in to comment.