@zohodesk/client_build_tool 0.0.11-exp.24.0 → 0.0.11-exp.25.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.
@@ -24,10 +24,8 @@ class I18nGroupRuntimeModule extends _webpack.RuntimeModule {
24
24
  } = this.options; // Build chunk-to-group mapping from config
25
25
 
26
26
  const chunkToGroup = {};
27
- const groupToChunks = {};
28
27
  Object.entries(customGroups || {}).forEach(([groupName, config]) => {
29
28
  const chunkNames = config.chunks || [];
30
- groupToChunks[groupName] = chunkNames;
31
29
  chunkNames.forEach(chunkName => {
32
30
  chunkToGroup[chunkName] = groupName;
33
31
  });
@@ -37,7 +35,6 @@ class I18nGroupRuntimeModule extends _webpack.RuntimeModule {
37
35
  (function() {
38
36
  var loadedGroups = {};
39
37
  var chunkNameToGroup = ${JSON.stringify(chunkToGroup)};
40
- var groupToChunkNames = ${JSON.stringify(groupToChunks)};
41
38
  var cachedI18nBase;
42
39
  var loadReasonKey = '__i18nGroupLoadReason';
43
40
 
@@ -189,10 +186,6 @@ class I18nGroupRuntimeModule extends _webpack.RuntimeModule {
189
186
  });
190
187
  }
191
188
 
192
- function toLower(str) {
193
- return typeof str === 'string' ? str.toLowerCase() : str;
194
- }
195
-
196
189
  function findGroupByChunkId(chunkId) {
197
190
  var directGroup = chunkNameToGroup[chunkId];
198
191
  if (directGroup) {
@@ -204,28 +197,6 @@ class I18nGroupRuntimeModule extends _webpack.RuntimeModule {
204
197
  return chunkNameToGroup[stringId];
205
198
  }
206
199
 
207
- if (typeof __webpack_require__ !== 'undefined' && typeof __webpack_require__.u === 'function') {
208
- var filename = __webpack_require__.u(chunkId) || '';
209
- if (filename) {
210
- var loweredFilename = toLower(filename);
211
- for (var group in groupToChunkNames) {
212
- if (!Object.prototype.hasOwnProperty.call(groupToChunkNames, group)) {
213
- continue;
214
- }
215
- var chunkNames = groupToChunkNames[group] || [];
216
- for (var i = 0; i < chunkNames.length; i++) {
217
- var candidate = chunkNames[i];
218
- if (candidate && loweredFilename.indexOf(toLower(candidate)) !== -1) {
219
- if (typeof console !== 'undefined' && console.log) {
220
- console.log('[i18n-group:match-by-filename]', chunkId, filename, 'matched', candidate, '→', group);
221
- }
222
- return group;
223
- }
224
- }
225
- }
226
- }
227
- }
228
-
229
200
  return undefined;
230
201
  }
231
202
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.11-exp.24.0",
3
+ "version": "0.0.11-exp.25.0",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {