We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d576b21 commit b292e76Copy full SHA for b292e76
lib/webpack/delete-unused-entries-js-plugin.js
@@ -9,8 +9,6 @@
9
10
'use strict';
11
12
-const webpack = require('webpack');
13
-
14
function DeleteUnusedEntriesJSPlugin(entriesToDelete = []) {
15
this.entriesToDelete = entriesToDelete;
16
}
@@ -54,10 +52,12 @@ DeleteUnusedEntriesJSPlugin.prototype.apply = function(compiler) {
54
52
});
55
53
};
56
57
- compiler.hooks.compilation.tap('DeleteUnusedEntriesJSPlugin', function (compilation) {
+ compiler.hooks.compilation.tap('DeleteUnusedEntriesJSPlugin', function(compilation) {
58
compilation.hooks.additionalAssets.tap(
59
'DeleteUnusedEntriesJsPlugin',
60
- function() { deleteEntries(compilation) }
+ function() {
+ deleteEntries(compilation);
+ }
61
);
62
63
0 commit comments