html-webpack-plugin 5.6.5 → 5.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -1
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -636,8 +636,10 @@ class HtmlWebpackPlugin {
|
|
|
636
636
|
Object.getPrototypeOf(global),
|
|
637
637
|
Object.getOwnPropertyDescriptors(global),
|
|
638
638
|
);
|
|
639
|
-
// Presence of `eval` breaks template's explicit `eval` call
|
|
639
|
+
// Presence of `eval` and `Function` breaks template's explicit `eval` call
|
|
640
|
+
// Ref: https://github.com/nodejs/help/issues/2880
|
|
640
641
|
delete globalClone.eval;
|
|
642
|
+
delete globalClone.Function;
|
|
641
643
|
// Not using `...global` as it throws when localStorage is not explicitly enabled in Node 25+
|
|
642
644
|
const vmContext = vm.createContext(
|
|
643
645
|
Object.assign(globalClone, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-webpack-plugin",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Simplifies creation of HTML files to serve your webpack bundles",
|
|
6
6
|
"author": "Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"cz-conventional-changelog": "2.1.0",
|
|
45
45
|
"dir-compare": "^3.3.0",
|
|
46
46
|
"eslint": "^8.56.0",
|
|
47
|
+
"handlebars-loader": "^1.7.3",
|
|
47
48
|
"html-loader": "2.1.1",
|
|
48
49
|
"husky": "^9.0.10",
|
|
49
50
|
"jest": "^27.2.5",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"standard-version": "^9.3.0",
|
|
59
60
|
"style-loader": "2.0.0",
|
|
60
61
|
"typescript": "4.9.4",
|
|
61
|
-
"webpack": "^5.
|
|
62
|
+
"webpack": "^5.104.1",
|
|
62
63
|
"webpack-cli": "4.5.0",
|
|
63
64
|
"webpack-recompilation-simulator": "3.2.0"
|
|
64
65
|
},
|