@zohodesk/client_build_tool 0.0.11-exp.13 → 0.0.11-exp.16

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,6 +1,34 @@
1
1
  # Changelog and Release Notes
2
2
 
3
+ - remove babel-plugin-module-resolver dependencies
3
4
 
5
+ **Adjustments:-**
6
+ - Public Folder configuration is separated for development and production
7
+
8
+ **Bug Fix:-**
9
+ - 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`.
10
+ - Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
11
+ - Fixed the issue where a space in the variable name causes it to return an undefined value.
12
+ - Fixed the URL path generation issue that occurred while using context in the development setup.
13
+
14
+
15
+
16
+ # v0.0.11
17
+
18
+ # v0.0.10 (12-05-2025)
19
+ **Feature:-**
20
+ - `alias` support for `build:es` and `build:lib`
21
+ - Add babel-plugin-module-resolver dependencies
22
+ - Modify getBabelPlugin to include module resolver with aliases
23
+
24
+ **Bug Fix:-**
25
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
26
+ - Update mockApiHandler to ensure mock function is called correctly
27
+
28
+ **Change:-**
29
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
30
+
31
+ ## v0.0.9
4
32
 
5
33
  **Feature:-**
6
34
  - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
package/README.md CHANGED
@@ -100,7 +100,239 @@ fixes :-
100
100
 
101
101
  # Changelog and Release Notes
102
102
 
103
+ - remove babel-plugin-module-resolver dependencies
103
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
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
+ # v0.0.11
219
+
220
+ # v0.0.10 (12-05-2025)
221
+ **Feature:-**
222
+ - `alias` support for `build:es` and `build:lib`
223
+ - Add babel-plugin-module-resolver dependencies
224
+ - Modify getBabelPlugin to include module resolver with aliases
225
+
226
+ **Bug Fix:-**
227
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
228
+ - Update mockApiHandler to ensure mock function is called correctly
229
+
230
+ **Change:-**
231
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
232
+
233
+ ## v0.0.9
234
+
235
+ **Feature:-**
236
+ - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
237
+ - to use externals, we use the following pattern in `app > externals` :
238
+
239
+ For example
240
+ ```
241
+ externals: {
242
+ <key> : <value>
243
+ }
244
+ ```
245
+
246
+ ## v0.0.6 (4-09-2023)
247
+
248
+ **Feature:-**
249
+ - 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`.
250
+ - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
251
+ - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
252
+ only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
253
+ - added support for glob pattern for custom chunks split logic.
254
+ - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
255
+
256
+ **Change:-**
257
+ - i18n name not generated issue fix.
258
+ - public path not correctly set issue fix.
259
+ - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
260
+ ## v0.0.5 (6-08-2023)
261
+
262
+ **Changes:--**
263
+ - Typo fix in i18nRuntimeDealerPlugin.js
264
+ - fixing some bugs in resolvers.js file
265
+
266
+ ## v0.0.3 (1-08-2023)
267
+
268
+ **Changes:--**
269
+ - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
270
+ - unwanted files deleted from build
271
+
272
+ **Issue Fix:--**
273
+ - The issue with the source map not being created in the build has been fixed."
274
+
275
+
276
+ ## v0.0.2 (28-04-2023)
277
+
278
+ **Features:-**
279
+
280
+ - `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)
281
+ - `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)
282
+ - `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.
283
+ - `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.
284
+ - `enableChunkHash` renamed as `enableFileNameHashing`
285
+
286
+ - `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`)
287
+ - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
288
+ - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
289
+ - `removePropTypes` support for remove the prop types package in the output build.
290
+ - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
291
+ - `manifestJson` default value set as false.
292
+ - `customAttributes` support for add attributes to html, link , script tag in the output build.
293
+
294
+
295
+ ## v0.0.1 (18-04-2023)
296
+
297
+ First Release
298
+ **Features:-**
299
+
300
+ - 'start' command to run react app
301
+ - 'build' command to create build for react app
302
+ - 'build:lib' command to create lib for react library
303
+ - 'build:es' command to create es for react library
304
+ - 'templates' command to create es for react library
305
+ # Changelog and Release Notes
306
+
307
+ - remove babel-plugin-module-resolver dependencies
308
+
309
+ **Adjustments:-**
310
+ - Public Folder configuration is separated for development and production
311
+
312
+ **Bug Fix:-**
313
+ - 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`.
314
+ - Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
315
+ - Fixed the issue where a space in the variable name causes it to return an undefined value.
316
+ - Fixed the URL path generation issue that occurred while using context in the development setup.
317
+
318
+
319
+
320
+ # v0.0.11
321
+
322
+ # v0.0.10 (12-05-2025)
323
+ **Feature:-**
324
+ - `alias` support for `build:es` and `build:lib`
325
+ - Add babel-plugin-module-resolver dependencies
326
+ - Modify getBabelPlugin to include module resolver with aliases
327
+
328
+ **Bug Fix:-**
329
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
330
+ - Update mockApiHandler to ensure mock function is called correctly
331
+
332
+ **Change:-**
333
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
334
+
335
+ ## v0.0.9
104
336
 
105
337
  **Feature:-**
106
338
  - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
package/README_backup.md CHANGED
@@ -98,3 +98,207 @@ 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
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
+ # v0.0.11
219
+
220
+ # v0.0.10 (12-05-2025)
221
+ **Feature:-**
222
+ - `alias` support for `build:es` and `build:lib`
223
+ - Add babel-plugin-module-resolver dependencies
224
+ - Modify getBabelPlugin to include module resolver with aliases
225
+
226
+ **Bug Fix:-**
227
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
228
+ - Update mockApiHandler to ensure mock function is called correctly
229
+
230
+ **Change:-**
231
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
232
+
233
+ ## v0.0.9
234
+
235
+ **Feature:-**
236
+ - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
237
+ - to use externals, we use the following pattern in `app > externals` :
238
+
239
+ For example
240
+ ```
241
+ externals: {
242
+ <key> : <value>
243
+ }
244
+ ```
245
+
246
+ ## v0.0.6 (4-09-2023)
247
+
248
+ **Feature:-**
249
+ - 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`.
250
+ - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
251
+ - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
252
+ only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
253
+ - added support for glob pattern for custom chunks split logic.
254
+ - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
255
+
256
+ **Change:-**
257
+ - i18n name not generated issue fix.
258
+ - public path not correctly set issue fix.
259
+ - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
260
+ ## v0.0.5 (6-08-2023)
261
+
262
+ **Changes:--**
263
+ - Typo fix in i18nRuntimeDealerPlugin.js
264
+ - fixing some bugs in resolvers.js file
265
+
266
+ ## v0.0.3 (1-08-2023)
267
+
268
+ **Changes:--**
269
+ - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
270
+ - unwanted files deleted from build
271
+
272
+ **Issue Fix:--**
273
+ - The issue with the source map not being created in the build has been fixed."
274
+
275
+
276
+ ## v0.0.2 (28-04-2023)
277
+
278
+ **Features:-**
279
+
280
+ - `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)
281
+ - `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)
282
+ - `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.
283
+ - `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.
284
+ - `enableChunkHash` renamed as `enableFileNameHashing`
285
+
286
+ - `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`)
287
+ - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
288
+ - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
289
+ - `removePropTypes` support for remove the prop types package in the output build.
290
+ - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
291
+ - `manifestJson` default value set as false.
292
+ - `customAttributes` support for add attributes to html, link , script tag in the output build.
293
+
294
+
295
+ ## v0.0.1 (18-04-2023)
296
+
297
+ First Release
298
+ **Features:-**
299
+
300
+ - 'start' command to run react app
301
+ - 'build' command to create build for react app
302
+ - 'build:lib' command to create lib for react library
303
+ - 'build:es' command to create es for react library
304
+ - 'templates' command to create es for react library
@@ -115,7 +115,10 @@ var _default = {
115
115
  // Name Suggestions `customizations` this will be easier then `plugin` to understand for developers
116
116
  plugins: {
117
117
  rtlSplit: {
118
- enableRTLSplit: false,
118
+ enableRTLSplit: {
119
+ value: false,
120
+ cli: 'enable_rtl_split'
121
+ },
119
122
  templateLabel: '{{--dir}}',
120
123
  disableMinifySelector: false,
121
124
  dirVarName: 'document.dir'
@@ -171,26 +174,12 @@ var _default = {
171
174
  localeVarName: 'document.documentElement.lang',
172
175
  jsonpFunc: 'console.log',
173
176
  jsResource: null,
174
- propertiesFolder: null,
175
- useNumericIndexing: false
177
+ propertiesFolder: null
176
178
  },
177
- i18nIndexing: {
178
- enable: false,
179
- devMode: false,
180
- jsResourcePath: './deskapp/properties/JSResources.properties',
181
- propertiesFolderPath: './deskapp/properties',
182
- numericMapPath: './deskapp/properties/i18n-numeric-map.json',
183
- numericFilenameTemplate: 'i18n-chunk/[locale]/numeric.i18n.js',
184
- dynamicFilenameTemplate: 'i18n-chunk/[locale]/dynamic.i18n.js',
185
- singleFileTemplate: 'i18n/[locale].js',
186
- jsonpFunc: 'window.loadI18nChunk',
187
- htmlTemplateLabel: '{{--user-locale}}',
188
- localeVarName: 'window.userLangCode',
189
- singleFile: false,
190
- includeContentHash: false,
191
- generateManifest: false
179
+ publicFolders: {
180
+ dev: ['...'],
181
+ prod: ['...']
192
182
  },
193
- publicFolders: ['...'],
194
183
  app: {
195
184
  entryFile: {
196
185
  value: 'src/index.js',
@@ -94,28 +94,12 @@ var _default = {
94
94
  localeVarName: 'document.documentElement.lang',
95
95
  jsonpFunc: 'console.log',
96
96
  jsResource: null,
97
- propertiesFolder: null,
98
- useNumericIndexing: false
97
+ propertiesFolder: null
99
98
  },
100
- i18nIndexing: {
101
- enable: false,
102
- devMode: false,
103
- jsResourcePath: './deskapp/properties/JSResources.properties',
104
- propertiesFolderPath: './deskapp/properties',
105
- numericMapPath: './deskapp/properties/i18n-numeric-map.json',
106
- numericFilenameTemplate: 'i18n-chunk/[locale]/numeric.i18n.js',
107
- dynamicFilenameTemplate: 'i18n-chunk/[locale]/dynamic.i18n.js',
108
- jsonpFunc: 'window.loadI18nChunk',
109
- htmlTemplateLabel: '{{--user-locale}}',
110
- localeVarName: 'window.userLangCode',
111
- singleFile: false,
112
- includeContentHash: false,
113
- generateManifest: false
99
+ publicFolders: {
100
+ dev: ['...'],
101
+ prod: ['...']
114
102
  },
115
- publicFolders: ['...', {
116
- source: './deskapp/tp/',
117
- target: './tp/'
118
- }],
119
103
  app: {
120
104
  entryFile: 'src/index.js',
121
105
  tpFolder: null,
@@ -19,7 +19,8 @@ const babelPluginOrder = ['removeAttribute', 'removePropTypes', 'devConsoleExclu
19
19
  function getBabelPlugin(options) {
20
20
  const {
21
21
  mode
22
- } = options;
22
+ } = options; // let customPlugins = [];
23
+
23
24
  let customPlugins = [];
24
25
  const {
25
26
  babelCustomizations
@@ -32,6 +33,4 @@ function getBabelPlugin(options) {
32
33
  }
33
34
 
34
35
  return customPlugins.filter(Boolean);
35
- }
36
-
37
- ;
36
+ }
@@ -25,6 +25,6 @@ function runBabelForTSFile({
25
25
  // const jsSourceCode = readFileSync(filename).toString();
26
26
  const babelConfig = (0, _babelWebConfig.babelWebConfig)(options, mode);
27
27
  const result = (0, _core.transformFileSync)(filename, babelConfig);
28
- (0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js'), result.code);
28
+ (0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js').replace('.ts', '.js'), result.code);
29
29
  }
30
30
  }
@@ -30,6 +30,16 @@ class BundleIntegrityReport {
30
30
 
31
31
  apply(compiler) {
32
32
  compiler.hooks.done.tapAsync(pluginName, (stats, callback) => {
33
+ if (stats.hasErrors()) {
34
+ console.error(stats.toString({
35
+ all: false,
36
+ errors: true,
37
+ errorDetails: true,
38
+ colors: true
39
+ }));
40
+ return callback(new Error('Build failed due to compilation errors.'));
41
+ }
42
+
33
43
  const statsJson = (0, _objectManipulation.removeKeysFromObject)(stats.toJson(this.statsOptions), this.excludeKeysInStat);
34
44
  this.emitStats(statsJson).on('end', () => {
35
45
  callback();
@@ -7,29 +7,11 @@ exports.jsLoaders = jsLoaders;
7
7
 
8
8
  var _babelLoaderConfig = require("./loaderConfigs/babelLoaderConfig");
9
9
 
10
- const {
11
- i18nIdReplaceLoaderConfig
12
- } = require('./loaderConfigs/i18nIdReplaceLoaderConfig');
13
-
14
10
  function jsLoaders(options) {
15
- const useLoaders = [];
16
- useLoaders.push((0, _babelLoaderConfig.babelLoaderConfig)(options));
17
- const shouldUseNumericIndexing = options.i18nIndexing && options.i18nIndexing.enable || options.i18nChunkSplit && options.i18nChunkSplit.chunkSplitEnable && options.i18nChunkSplit.useNumericIndexing;
18
-
19
- if (shouldUseNumericIndexing) {
20
- try {
21
- const loaderConfig = i18nIdReplaceLoaderConfig(options, options.context);
22
-
23
- if (loaderConfig) {
24
- useLoaders.push(loaderConfig);
25
- }
26
- } catch (err) {// Silently skip if configuration fails
27
- }
28
- }
29
-
30
11
  return [{
31
12
  test: /\.js$/,
32
13
  exclude: /node_modules/,
33
- use: useLoaders
14
+ use: [(0, _babelLoaderConfig.babelLoaderConfig)(options)] // include: path.join(appPath, folder)
15
+
34
16
  }];
35
17
  }
@@ -43,9 +43,10 @@ function folderPatterns(publicFolders) {
43
43
 
44
44
  function configCopyPublicFolders(options) {
45
45
  let {
46
- publicFolders
46
+ publicFolders,
47
+ mode = 'dev'
47
48
  } = options;
48
- publicFolders = (0, _updateArrayWithDefault.updateArrayWithDefault)(publicFolders, defaultPublicFolders);
49
+ publicFolders = (0, _updateArrayWithDefault.updateArrayWithDefault)(publicFolders[mode], defaultPublicFolders);
49
50
 
50
51
  if (publicFolders.length === 0) {
51
52
  return null;
@@ -49,12 +49,10 @@ var _configRuntimeResourceCleanup = require("./pluginConfigs/configRuntimeResour
49
49
 
50
50
  var _configCustomScriptLoadingStrategyPlugin = require("./pluginConfigs/configCustomScriptLoadingStrategyPlugin");
51
51
 
52
- var _configI18nNumericIndexPlugin = require("./pluginConfigs/configI18nNumericIndexPlugin");
53
-
54
52
  // import { IgnorePlugin } from 'webpack';
55
53
  function plugins(options) {
56
54
  const {
57
55
  webpackPlugins
58
56
  } = options;
59
- return [(0, _configEnvVariables.configEnvVariables)(options), (0, _configCustomAttributesPlugin.configCustomAttributesPlugin)(options), (0, _configTPHashMappingPlugin.configTPHashMappingPlugin)(options), (0, _configCopyPublicFolders.configCopyPublicFolders)(options), (0, _configIgnorePlugin.configIgnorePlugin)(options), (0, _configMiniCSSExtractPlugin.configMiniCSSExtractPlugin)(options), (0, _configSelectorWeightPlugin.configSelectorWeightPlugin)(options), (0, _configVariableConversionPlugin.configVariableConversionPlugin)(options), (0, _configI18nSplitPlugin.configI18nSplitPlugin)(options), (0, _configRtlCssPlugin.configRtlCssPlugin)(options), (0, _configHtmlWebpackPlugin.configHtmlWebpackPlugin)(options), ...((0, _configI18nNumericIndexPlugin.configI18nNumericIndexPlugin)(options) || []), (0, _configCustomScriptLoadingStrategyPlugin.configCustomScriptLoadingStrategyPlugin)(options), (0, _configCdnChangePlugin.configCdnChangePlugin)(options), (0, _configServiceWorkerPlugin.configServiceWorkerPlugin)(options), (0, _configEFCTemplatePlugin.configEFCTemplatePlugin)(options), (0, _configResourceHintsPlugin.configResourceHintsPlugin)(options), (0, _configBundleAnalyzer.configBundleAnalyzer)(options), (0, _configManifestJsonPlugin.configManifestJsonPlugin)(options), (0, _configSourceMapPlugin.configSourceMapPlugin)(options), (0, _configProgressPlugin.configProgressPlugin)(options), (0, _configBundleIntegrityReport.configBundleIntegrityReport)(options), (0, _configRuntimeResourceCleanup.configRuntimeResourceCleanup)(options), ...webpackPlugins].filter(Boolean);
57
+ return [(0, _configEnvVariables.configEnvVariables)(options), (0, _configCustomAttributesPlugin.configCustomAttributesPlugin)(options), (0, _configTPHashMappingPlugin.configTPHashMappingPlugin)(options), (0, _configCopyPublicFolders.configCopyPublicFolders)(options), (0, _configIgnorePlugin.configIgnorePlugin)(options), (0, _configMiniCSSExtractPlugin.configMiniCSSExtractPlugin)(options), (0, _configSelectorWeightPlugin.configSelectorWeightPlugin)(options), (0, _configVariableConversionPlugin.configVariableConversionPlugin)(options), (0, _configI18nSplitPlugin.configI18nSplitPlugin)(options), (0, _configRtlCssPlugin.configRtlCssPlugin)(options), (0, _configHtmlWebpackPlugin.configHtmlWebpackPlugin)(options), (0, _configCustomScriptLoadingStrategyPlugin.configCustomScriptLoadingStrategyPlugin)(options), (0, _configCdnChangePlugin.configCdnChangePlugin)(options), (0, _configServiceWorkerPlugin.configServiceWorkerPlugin)(options), (0, _configEFCTemplatePlugin.configEFCTemplatePlugin)(options), (0, _configResourceHintsPlugin.configResourceHintsPlugin)(options), (0, _configBundleAnalyzer.configBundleAnalyzer)(options), (0, _configManifestJsonPlugin.configManifestJsonPlugin)(options), (0, _configSourceMapPlugin.configSourceMapPlugin)(options), (0, _configProgressPlugin.configProgressPlugin)(options), (0, _configBundleIntegrityReport.configBundleIntegrityReport)(options), (0, _configRuntimeResourceCleanup.configRuntimeResourceCleanup)(options), ...webpackPlugins].filter(Boolean);
60
58
  }