@epublishing/grunt-epublishing 1.2.9 → 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.
@@ -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.9",
4
+ "version": "1.2.10",
5
5
  "homepage": "https://www.epublishing.com",
6
6
  "contributors": [
7
7
  {
package/tsconfig.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "allowJs": true,
4
- "experimentalDecorators": true,
5
- "allowSyntheticDefaultImports": true,
6
- "baseUrl": ".",
7
- "downlevelIteration": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "lib": [
10
- "dom",
11
- "es6"
12
- ],
13
- "module": "esnext",
14
- "moduleResolution": "node",
15
- "target": "es6",
16
- "paths": {
17
- "*": [
18
- "app/js/*"
19
- ]
20
- }
21
- }
22
- }