@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 +8 -0
- package/README.md +8 -0
- package/lib/schemas/defaultConfigValues.js +2 -1
- package/lib/shared/babel/babelWebConfig.js +2 -1
- package/lib/shared/bundler/webpack/moduleConcatenationConfig.js +26 -0
- package/lib/shared/bundler/webpack/optimizationConfig.js +4 -1
- package/package.json +1 -1
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:-**
|
|
@@ -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
|
}
|