Skip to content

Commit a2ed536

Browse files
committed
[TASK] all modifications of compilation.assets are deprecated, update code accord new API
1 parent 767a896 commit a2ed536

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.6.3 (Oct 25, 2020)
2+
Fix BREAKING CHANGE in Webpack 5: No more changes should happen to `Compilation.assets`. Update code accord new API.
3+
14
## 0.6.2 (Oct 24, 2020)
25
Update npm packages.
36

File renamed without changes.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class WebpackRemoveEmptyScriptsPlugin {
5959
}
6060

6161
chunk.files.delete(file);
62-
delete compilation.assets[file];
62+
compilation.deleteAsset(file);
6363
}
6464
});
6565
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-remove-empty-scripts",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "Webpack 5 plugin to remove empty scripts generated by usage only style in entries. This is the fork of original plugin https://github.com/fqborges/webpack-fix-style-only-entries (ver. 0.6.0).",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)