@zohodesk/client_build_tool 0.0.11-exp.26.0 → 0.0.11-exp.27.0
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/README.md +0 -102
- package/README_backup.md +0 -102
- package/lib/schemas/defaultConfigValues.js +13 -29
- package/lib/schemas/defaultConfigValuesOnly.js +10 -14
- package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nGroupRuntimeModule.js +90 -168
- package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nNumericIndexHtmlInjectorPlugin.js +39 -24
- package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nNumericIndexPlugin.js +199 -127
- package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/utils/i18nDataLoader.js +18 -1
- package/lib/shared/bundler/webpack/loaders/i18nIdReplaceLoader.js +15 -54
- package/lib/shared/bundler/webpack/optimizationConfig.js +1 -4
- package/lib/shared/bundler/webpack/pluginConfigs/configI18nNumericIndexPlugin.js +3 -1
- package/lib/shared/bundler/webpack/plugins.js +1 -4
- package/package.json +1 -1
- package/docs/DYNAMIC_TEMPLATE_EXAMPLE.md +0 -129
- package/docs/I18N_NUMERIC_INDEXING_PLUGIN.md +0 -225
- package/docs/I18N_SINGLE_FILE_MODE.md +0 -126
- package/docs/client_build_tool_source_doc.md +0 -390
package/README.md
CHANGED
|
@@ -113,108 +113,6 @@ fixes :-
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
# v0.0.11
|
|
117
|
-
|
|
118
|
-
# v0.0.10 (12-05-2025)
|
|
119
|
-
**Feature:-**
|
|
120
|
-
- `alias` support for `build:es` and `build:lib`
|
|
121
|
-
- Add babel-plugin-module-resolver dependencies
|
|
122
|
-
- Modify getBabelPlugin to include module resolver with aliases
|
|
123
|
-
|
|
124
|
-
**Bug Fix:-**
|
|
125
|
-
- Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
|
|
126
|
-
- Update mockApiHandler to ensure mock function is called correctly
|
|
127
|
-
|
|
128
|
-
**Change:-**
|
|
129
|
-
- Refactor defaultConfigValues.js to include cli options for enableRTLSplit
|
|
130
|
-
|
|
131
|
-
## v0.0.9
|
|
132
|
-
|
|
133
|
-
**Feature:-**
|
|
134
|
-
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
|
135
|
-
- to use externals, we use the following pattern in `app > externals` :
|
|
136
|
-
|
|
137
|
-
For example
|
|
138
|
-
```
|
|
139
|
-
externals: {
|
|
140
|
-
<key> : <value>
|
|
141
|
-
}
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## v0.0.6 (4-09-2023)
|
|
145
|
-
|
|
146
|
-
**Feature:-**
|
|
147
|
-
- Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
|
|
148
|
-
- Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
|
|
149
|
-
- added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
|
|
150
|
-
only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
|
|
151
|
-
- added support for glob pattern for custom chunks split logic.
|
|
152
|
-
- added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
|
|
153
|
-
|
|
154
|
-
**Change:-**
|
|
155
|
-
- i18n name not generated issue fix.
|
|
156
|
-
- public path not correctly set issue fix.
|
|
157
|
-
- changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
|
|
158
|
-
## v0.0.5 (6-08-2023)
|
|
159
|
-
|
|
160
|
-
**Changes:--**
|
|
161
|
-
- Typo fix in i18nRuntimeDealerPlugin.js
|
|
162
|
-
- fixing some bugs in resolvers.js file
|
|
163
|
-
|
|
164
|
-
## v0.0.3 (1-08-2023)
|
|
165
|
-
|
|
166
|
-
**Changes:--**
|
|
167
|
-
- `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
|
|
168
|
-
- unwanted files deleted from build
|
|
169
|
-
|
|
170
|
-
**Issue Fix:--**
|
|
171
|
-
- The issue with the source map not being created in the build has been fixed."
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
## v0.0.2 (28-04-2023)
|
|
175
|
-
|
|
176
|
-
**Features:-**
|
|
177
|
-
|
|
178
|
-
- `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
|
|
179
|
-
- `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
|
|
180
|
-
- `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
|
|
181
|
-
- `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
|
|
182
|
-
- `enableChunkHash` renamed as `enableFileNameHashing`
|
|
183
|
-
|
|
184
|
-
- `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
|
|
185
|
-
- `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
|
|
186
|
-
- `removeAttribute` option changes as `babelCustomizations.removeAttribute`
|
|
187
|
-
- `removePropTypes` support for remove the prop types package in the output build.
|
|
188
|
-
- `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
|
|
189
|
-
- `manifestJson` default value set as false.
|
|
190
|
-
- `customAttributes` support for add attributes to html, link , script tag in the output build.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
## v0.0.1 (18-04-2023)
|
|
194
|
-
|
|
195
|
-
First Release
|
|
196
|
-
**Features:-**
|
|
197
|
-
|
|
198
|
-
- 'start' command to run react app
|
|
199
|
-
- 'build' command to create build for react app
|
|
200
|
-
- 'build:lib' command to create lib for react library
|
|
201
|
-
- 'build:es' command to create es for react library
|
|
202
|
-
- 'templates' command to create es for react library
|
|
203
|
-
# Changelog and Release Notes
|
|
204
|
-
|
|
205
|
-
- remove babel-plugin-module-resolver dependencies
|
|
206
|
-
|
|
207
|
-
**Adjustments:-**
|
|
208
|
-
- Public Folder configuration is separated for development and production
|
|
209
|
-
|
|
210
|
-
**Bug Fix:-**
|
|
211
|
-
- Fixed the issue where the build log was not visible when `stats (bundle integrity)` was enabled. The problem was resolved by adding an error check in the `bundleIntegrity plugin`.
|
|
212
|
-
- Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
|
|
213
|
-
- Fixed the issue where a space in the variable name causes it to return an undefined value.
|
|
214
|
-
- Fixed the URL path generation issue that occurred while using context in the development setup.
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
116
|
# v0.0.11
|
|
219
117
|
|
|
220
118
|
# v0.0.10 (12-05-2025)
|
package/README_backup.md
CHANGED
|
@@ -98,105 +98,3 @@ fixes :-
|
|
|
98
98
|
|
|
99
99
|
- preload plc undefined url fixed
|
|
100
100
|
|
|
101
|
-
# Changelog and Release Notes
|
|
102
|
-
|
|
103
|
-
- remove babel-plugin-module-resolver dependencies
|
|
104
|
-
|
|
105
|
-
**Adjustments:-**
|
|
106
|
-
- Public Folder configuration is separated for development and production
|
|
107
|
-
|
|
108
|
-
**Bug Fix:-**
|
|
109
|
-
- Fixed the issue where the build log was not visible when `stats (bundle integrity)` was enabled. The problem was resolved by adding an error check in the `bundleIntegrity plugin`.
|
|
110
|
-
- Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
|
|
111
|
-
- Fixed the issue where a space in the variable name causes it to return an undefined value.
|
|
112
|
-
- Fixed the URL path generation issue that occurred while using context in the development setup.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# v0.0.11
|
|
117
|
-
|
|
118
|
-
# v0.0.10 (12-05-2025)
|
|
119
|
-
**Feature:-**
|
|
120
|
-
- `alias` support for `build:es` and `build:lib`
|
|
121
|
-
- Add babel-plugin-module-resolver dependencies
|
|
122
|
-
- Modify getBabelPlugin to include module resolver with aliases
|
|
123
|
-
|
|
124
|
-
**Bug Fix:-**
|
|
125
|
-
- Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
|
|
126
|
-
- Update mockApiHandler to ensure mock function is called correctly
|
|
127
|
-
|
|
128
|
-
**Change:-**
|
|
129
|
-
- Refactor defaultConfigValues.js to include cli options for enableRTLSplit
|
|
130
|
-
|
|
131
|
-
## v0.0.9
|
|
132
|
-
|
|
133
|
-
**Feature:-**
|
|
134
|
-
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
|
135
|
-
- to use externals, we use the following pattern in `app > externals` :
|
|
136
|
-
|
|
137
|
-
For example
|
|
138
|
-
```
|
|
139
|
-
externals: {
|
|
140
|
-
<key> : <value>
|
|
141
|
-
}
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## v0.0.6 (4-09-2023)
|
|
145
|
-
|
|
146
|
-
**Feature:-**
|
|
147
|
-
- Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
|
|
148
|
-
- Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
|
|
149
|
-
- added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
|
|
150
|
-
only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
|
|
151
|
-
- added support for glob pattern for custom chunks split logic.
|
|
152
|
-
- added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
|
|
153
|
-
|
|
154
|
-
**Change:-**
|
|
155
|
-
- i18n name not generated issue fix.
|
|
156
|
-
- public path not correctly set issue fix.
|
|
157
|
-
- changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
|
|
158
|
-
## v0.0.5 (6-08-2023)
|
|
159
|
-
|
|
160
|
-
**Changes:--**
|
|
161
|
-
- Typo fix in i18nRuntimeDealerPlugin.js
|
|
162
|
-
- fixing some bugs in resolvers.js file
|
|
163
|
-
|
|
164
|
-
## v0.0.3 (1-08-2023)
|
|
165
|
-
|
|
166
|
-
**Changes:--**
|
|
167
|
-
- `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
|
|
168
|
-
- unwanted files deleted from build
|
|
169
|
-
|
|
170
|
-
**Issue Fix:--**
|
|
171
|
-
- The issue with the source map not being created in the build has been fixed."
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
## v0.0.2 (28-04-2023)
|
|
175
|
-
|
|
176
|
-
**Features:-**
|
|
177
|
-
|
|
178
|
-
- `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
|
|
179
|
-
- `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
|
|
180
|
-
- `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
|
|
181
|
-
- `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
|
|
182
|
-
- `enableChunkHash` renamed as `enableFileNameHashing`
|
|
183
|
-
|
|
184
|
-
- `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
|
|
185
|
-
- `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
|
|
186
|
-
- `removeAttribute` option changes as `babelCustomizations.removeAttribute`
|
|
187
|
-
- `removePropTypes` support for remove the prop types package in the output build.
|
|
188
|
-
- `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
|
|
189
|
-
- `manifestJson` default value set as false.
|
|
190
|
-
- `customAttributes` support for add attributes to html, link , script tag in the output build.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
## v0.0.1 (18-04-2023)
|
|
194
|
-
|
|
195
|
-
First Release
|
|
196
|
-
**Features:-**
|
|
197
|
-
|
|
198
|
-
- 'start' command to run react app
|
|
199
|
-
- 'build' command to create build for react app
|
|
200
|
-
- 'build:lib' command to create lib for react library
|
|
201
|
-
- 'build:es' command to create es for react library
|
|
202
|
-
- 'templates' command to create es for react library
|
|
@@ -181,42 +181,26 @@ var _default = {
|
|
|
181
181
|
value: false,
|
|
182
182
|
cli: 'i18n_indexing'
|
|
183
183
|
},
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
dynamicFilenameTemplate: '[locale]/dynamic.i18n.js',
|
|
190
|
-
singleFileTemplate: '[locale].js',
|
|
191
|
-
// Template for single-file mode
|
|
184
|
+
jsResourcePath: null,
|
|
185
|
+
propertiesFolderPath: null,
|
|
186
|
+
numericMapPath: null,
|
|
187
|
+
numericFilenameTemplate: 'i18n-chunk/[locale]/numeric.i18n.js',
|
|
188
|
+
dynamicFilenameTemplate: 'i18n-chunk/[locale]/dynamic.i18n.js',
|
|
192
189
|
jsonpFunc: 'window.loadI18nChunk',
|
|
193
190
|
htmlTemplateLabel: '{{--user-locale}}',
|
|
194
191
|
localeVarName: 'window.userLangCode',
|
|
195
192
|
singleFile: false,
|
|
196
|
-
|
|
197
|
-
restrictToBaseKeys:
|
|
198
|
-
value: false,
|
|
199
|
-
cli: 'i18n_restrict_to_base'
|
|
200
|
-
},
|
|
193
|
+
singleFileTemplate: '[locale].js',
|
|
194
|
+
restrictToBaseKeys: false,
|
|
201
195
|
includeContentHash: false,
|
|
196
|
+
outputFolder: 'i18n-chunk',
|
|
202
197
|
generateManifest: false,
|
|
203
198
|
manifestPath: null,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
// Control i18n file emission
|
|
210
|
-
injectI18nUrlInIndex: {
|
|
211
|
-
value: true,
|
|
212
|
-
cli: 'i18n_inject_html'
|
|
213
|
-
},
|
|
214
|
-
// Control HTML injection
|
|
215
|
-
loaderOptions: {
|
|
216
|
-
includePaths: [],
|
|
217
|
-
excludePaths: ['node_modules', 'tests']
|
|
218
|
-
},
|
|
219
|
-
customGroups: null
|
|
199
|
+
emitFiles: true,
|
|
200
|
+
injectI18nUrlInIndex: true,
|
|
201
|
+
customGroups: null,
|
|
202
|
+
chunkToGroupMapping: {},
|
|
203
|
+
i18nPublicPathVar: null
|
|
220
204
|
},
|
|
221
205
|
publicFolders: {
|
|
222
206
|
dev: ['...'],
|
|
@@ -98,30 +98,26 @@ var _default = {
|
|
|
98
98
|
},
|
|
99
99
|
i18nIndexing: {
|
|
100
100
|
enable: false,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
dynamicFilenameTemplate: '[locale]/dynamic.i18n.js',
|
|
107
|
-
singleFileTemplate: '[locale].js',
|
|
101
|
+
jsResourcePath: null,
|
|
102
|
+
propertiesFolderPath: null,
|
|
103
|
+
numericMapPath: null,
|
|
104
|
+
numericFilenameTemplate: 'i18n-chunk/[locale]/numeric.i18n.js',
|
|
105
|
+
dynamicFilenameTemplate: 'i18n-chunk/[locale]/dynamic.i18n.js',
|
|
108
106
|
jsonpFunc: 'window.loadI18nChunk',
|
|
109
107
|
htmlTemplateLabel: '{{--user-locale}}',
|
|
110
108
|
localeVarName: 'window.userLangCode',
|
|
111
109
|
singleFile: false,
|
|
110
|
+
singleFileTemplate: '[locale].js',
|
|
112
111
|
restrictToBaseKeys: false,
|
|
113
112
|
includeContentHash: false,
|
|
113
|
+
outputFolder: 'i18n-chunk',
|
|
114
114
|
generateManifest: false,
|
|
115
115
|
manifestPath: null,
|
|
116
116
|
emitFiles: true,
|
|
117
|
-
// Control i18n file emission
|
|
118
117
|
injectI18nUrlInIndex: true,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
excludePaths: ['node_modules', 'tests']
|
|
123
|
-
},
|
|
124
|
-
customGroups: null
|
|
118
|
+
customGroups: null,
|
|
119
|
+
chunkToGroupMapping: {},
|
|
120
|
+
i18nPublicPathVar: null
|
|
125
121
|
},
|
|
126
122
|
publicFolders: {
|
|
127
123
|
dev: ['...'],
|