@zohodesk/client_build_tool 0.0.22 → 0.0.23

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog and Release Notes
2
2
 
3
+ # v0.0.23 (17-03-2026)
4
+
5
+ **Fix:-**
6
+ - Enabled `bugfixes: true` in `@babel/preset-env` to reduce unnecessary transpilation of default assignment, rest, and destructured function parameters.
7
+
8
+ **Feature:-**
9
+ - Added `stats.moduleConcatenation` option to enable or disable webpack's `concatenateModules` optimization in production mode. Defaults to `true`.
10
+
3
11
  # v0.0.22 (17-01-2026)
4
12
 
5
13
  **Fix:-**
package/README.md CHANGED
@@ -475,6 +475,14 @@ First Release
475
475
  - 'templates' command to create es for react library
476
476
  # Changelog and Release Notes
477
477
 
478
+ # v0.0.23 (17-03-2026)
479
+
480
+ **Fix:-**
481
+ - Enabled `bugfixes: true` in `@babel/preset-env` to reduce unnecessary transpilation of default assignment, rest, and destructured function parameters.
482
+
483
+ **Feature:-**
484
+ - Added `stats.moduleConcatenation` option to enable or disable webpack's `concatenateModules` optimization in production mode. Defaults to `true`.
485
+
478
486
  # v0.0.22 (17-01-2026)
479
487
 
480
488
  **Fix:-**
@@ -26,7 +26,8 @@ var _default = {
26
26
  },
27
27
  fileName: null,
28
28
  options: null,
29
- excludeKeys: null
29
+ excludeKeys: null,
30
+ moduleConcatenation: true
30
31
  },
31
32
  enableFileNameHashing: {
32
33
  value: false,
@@ -49,6 +49,7 @@ function getBabelPresetEnvConfig(browserList, mode) {
49
49
  corejs: 3,
50
50
  targets: {
51
51
  browsers
52
- }
52
+ },
53
+ bugfixes: true
53
54
  }];
54
55
  }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getModuleConcatenation = getModuleConcatenation;
7
+
8
+ var _modeUtils = require("./common/modeUtils");
9
+
10
+ function getModuleConcatenation(options) {
11
+ const mode = (0, _modeUtils.getWebpackMode)(options);
12
+ const {
13
+ moduleConcatenation,
14
+ enable: statsEnable
15
+ } = options.stats;
16
+
17
+ if (!(0, _modeUtils.isProductionMode)(mode)) {
18
+ return false;
19
+ }
20
+
21
+ if (statsEnable) {
22
+ return moduleConcatenation;
23
+ }
24
+
25
+ return true;
26
+ }
@@ -15,6 +15,8 @@ var _configCSSMinifierPlugin = require("./pluginConfigs/configCSSMinifierPlugin"
15
15
 
16
16
  var _splitChunksConfig = require("./splitChunksConfig");
17
17
 
18
+ var _moduleConcatenationConfig = require("./moduleConcatenationConfig");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
20
22
  function optimizationConfig(options) {
@@ -51,6 +53,7 @@ function optimizationConfig(options) {
51
53
  moduleIds: 'named',
52
54
  runtimeChunk: {
53
55
  name: entrypoint => `runtime${char}${entrypoint.name}${suffix}`
54
- }
56
+ },
57
+ concatenateModules: (0, _moduleConcatenationConfig.getModuleConcatenation)(options)
55
58
  };
56
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {