@epublishing/grunt-epublishing 1.2.8 → 1.2.10
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/lib/webpack.config.js
CHANGED
|
@@ -326,6 +326,16 @@ function createWebpackConfig(config, options = {}) {
|
|
|
326
326
|
moduleIds: false, // Disable default, we'll set IDs manually
|
|
327
327
|
// Don't split runtime - keep it in entries for UMD compatibility
|
|
328
328
|
runtimeChunk: false,
|
|
329
|
+
// Disable scope hoisting (ModuleConcatenationPlugin) so each ESM
|
|
330
|
+
// module keeps its own factory scope. With hoisting on, webpack 5
|
|
331
|
+
// inlines jade-engine, jadechild and the site entry into one IIFE,
|
|
332
|
+
// and css-loader 7's `n.d(e, {A: () => a})` getter (where `a` is a
|
|
333
|
+
// `const` initialized at the end of the css module body) can be read
|
|
334
|
+
// by a sibling export before its initializer line runs — surfacing as
|
|
335
|
+
// `ReferenceError: can't access lexical declaration 'A' before
|
|
336
|
+
// initialization` in main.bundle.js. Per-module factories close that
|
|
337
|
+
// shared TDZ window for a small (~2 KB) bundle-size cost.
|
|
338
|
+
concatenateModules: false,
|
|
329
339
|
},
|
|
330
340
|
|
|
331
341
|
devtool: isProduction ? 'cheap-source-map' : 'source-map',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epublishing/grunt-epublishing",
|
|
3
3
|
"description": "Modern front-end build tools for ePublishing Jade and client sites.",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.10",
|
|
5
5
|
"homepage": "https://www.epublishing.com",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"compression-webpack-plugin": "^11.1.0",
|
|
49
49
|
"css-loader": "^7.1.2",
|
|
50
50
|
"cssnano": "^7.0.0",
|
|
51
|
-
"eslint": "^9.15.0",
|
|
52
51
|
"handlebars": "^4.7.8",
|
|
53
52
|
"handlebars-loader": "^1.7.3",
|
|
54
53
|
"lodash": "^4.17.21",
|
|
@@ -84,6 +83,7 @@
|
|
|
84
83
|
],
|
|
85
84
|
"devDependencies": {
|
|
86
85
|
"@epublishing/eslint-config-epublishing": "^0.2.0",
|
|
86
|
+
"eslint": "^9.15.0",
|
|
87
87
|
"jest": "^29.7.0"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
Binary file
|
|
Binary file
|