@zohodesk/client_build_tool 0.0.21 → 0.0.22-exp.2

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,11 @@
1
1
  # Changelog and Release Notes
2
2
 
3
+ # v0.0.22 (17-01-2026)
4
+
5
+ **Fix:-**
6
+ - The decodeUnicodeEscapes function was removed from the i18n file emit stage and moved to the getPropertiesAsJSON function.
7
+ - We changed the function invocation location because an additional / was appearing in the i18n output when generating i18n files using numeric indexing.
8
+
3
9
  # v0.0.21 (10-01-2026)
4
10
 
5
11
  **Feature:-**
package/README.md CHANGED
@@ -475,6 +475,12 @@ First Release
475
475
  - 'templates' command to create es for react library
476
476
  # Changelog and Release Notes
477
477
 
478
+ # v0.0.22 (17-01-2026)
479
+
480
+ **Fix:-**
481
+ - The decodeUnicodeEscapes function was removed from the i18n file emit stage and moved to the getPropertiesAsJSON function.
482
+ - We changed the function invocation location because an additional / was appearing in the i18n output when generating i18n files using numeric indexing.
483
+
478
484
  # v0.0.21 (10-01-2026)
479
485
 
480
486
  **Feature:-**
@@ -10,7 +10,6 @@ const {
10
10
  } = require('webpack');
11
11
 
12
12
  const {
13
- decodeUnicodeEscapes,
14
13
  getPropertiesAsJSON
15
14
  } = require('../I18nSplitPlugin/utils/propertiesUtils');
16
15
 
@@ -162,7 +161,7 @@ class I18nNumericIndexPlugin {
162
161
  }
163
162
 
164
163
  emitChunk(compilation, filenameTemplate, locale, data, manifest) {
165
- const content = decodeUnicodeEscapes(JSON.stringify(data));
164
+ const content = JSON.stringify(data);
166
165
  const fileContent = `${this.options.jsonpFunc}(${content});`;
167
166
  const contentHash = createHash({
168
167
  outputOptions: compilation.outputOptions,
@@ -36,7 +36,7 @@ function getPropertiesAsJSON(filePath) {
36
36
 
37
37
  const ind = line.indexOf('=');
38
38
  const key = line.slice(0, ind).replace(/\\ /g, ' ');
39
- const value = line.slice(ind + 1);
39
+ const value = decodeUnicodeEscapes(line.slice(ind + 1));
40
40
 
41
41
  if (key && value) {
42
42
  i18nObj[key] = value;
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.configHtmlFileLoader = configHtmlFileLoader;
6
7
  exports.configHtmlTemplateLoader = configHtmlTemplateLoader;
7
8
 
8
9
  function configHtmlTemplateLoader(options) {
@@ -15,4 +16,11 @@ function configHtmlTemplateLoader(options) {
15
16
  }
16
17
  }]
17
18
  };
19
+ }
20
+
21
+ function configHtmlFileLoader(options) {
22
+ return {
23
+ test: /\.html$/,
24
+ type: 'asset/source'
25
+ };
18
26
  }
@@ -48,7 +48,7 @@ function webpackConfigCreator(options) {
48
48
  module: {
49
49
  /* strictExportPresence for break the build when imported module not present in respective file */
50
50
  // strictExportPresence: true,
51
- rules: [...(0, _jsLoaders.jsLoaders)(options), ...(0, _tsLoaders.tsLoaders)(options), ...(0, _cssLoaders.cssLoaders)(options), (0, _configWebWorkerLoader.configWebWorkerLoader)(options), (0, _configHtmlTemplateLoader.configHtmlTemplateLoader)(options), ...(0, _assetLoaders.assetLoaders)(options), ...(0, _configCustomLoaders.configCustomLoaders)(options)]
51
+ rules: [...(0, _jsLoaders.jsLoaders)(options), ...(0, _tsLoaders.tsLoaders)(options), ...(0, _cssLoaders.cssLoaders)(options), (0, _configWebWorkerLoader.configWebWorkerLoader)(options), (0, _configHtmlTemplateLoader.configHtmlTemplateLoader)(options), (0, _configHtmlTemplateLoader.configHtmlFileLoader)(options), ...(0, _assetLoaders.assetLoaders)(options), ...(0, _configCustomLoaders.configCustomLoaders)(options)]
52
52
  },
53
53
  plugins: (0, _plugins.plugins)(options),
54
54
  externals: (0, _externals.externals)(options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.21",
3
+ "version": "0.0.22-exp.2",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {