@zohodesk/react-cli 1.1.11-exp.7 → 1.1.11-exp.8

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 CHANGED
@@ -44,6 +44,13 @@ Now to run app
44
44
 
45
45
  # Change Logs
46
46
 
47
+
48
+ # 1.1.11-exp.8 (4-9-2023)
49
+
50
+ **Changes**
51
+ - Re-factoring related changes
52
+
53
+
47
54
  # 1.1.11-exp.7 (1-9-2023)
48
55
 
49
56
  **Changes**
@@ -31,11 +31,11 @@ module.exports = class EfcResouceCleanupPlugin {
31
31
  __webpack_require__.m = null;
32
32
  __webpack_require__.c = null;
33
33
 
34
- `, `
35
- const addedResources = document.querySelectorAll('${resourceSelector}');
36
- addedResources.forEach(addedResource => addedResource.remove());
37
- }
38
- `])]);
34
+ `, attributekey && attributeValue ? `
35
+ const addedResources = document.querySelectorAll('${resourceSelector}');
36
+ addedResources.forEach(addedResource => addedResource.remove());
37
+ }
38
+ ` : ''])]);
39
39
  });
40
40
  });
41
41
  }
@@ -20,13 +20,13 @@ const statsSchema = {
20
20
 
21
21
  class StatsPlugin {
22
22
  constructor({
23
- statsOptions = {},
24
- statsOutputExcludeKeys = [],
25
- statsFileName = 'bundle-report-integrity.json'
23
+ statsOptions,
24
+ statsOutputExcludeKeys,
25
+ statsFileName
26
26
  }) {
27
- this.excludeKeysInStat = statsOutputExcludeKeys;
28
- this.statsOptions = Object.assign({}, statsSchema, statsOptions);
29
- this.statsFileName = statsFileName;
27
+ this.excludeKeysInStat = statsOutputExcludeKeys || [];
28
+ this.statsFileName = statsFileName || 'bundle-report-integrity.json';
29
+ this.statsOptions = Object.assign({}, statsSchema, statsOptions || {});
30
30
  }
31
31
 
32
32
  apply(compiler) {
@@ -729,9 +729,9 @@ var _default = {
729
729
  value: false,
730
730
  cli: 'enable_stats'
731
731
  },
732
- fileName: undefined,
733
- options: undefined,
734
- excludeKeys: undefined
732
+ fileName: null,
733
+ options: null,
734
+ excludeKeys: null
735
735
  }
736
736
  };
737
737
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.11-exp.7",
3
+ "version": "1.1.11-exp.8",
4
4
  "description": "A CLI tool for build modern web application and libraries",
5
5
  "scripts": {
6
6
  "init": "node ./lib/utils/init.js",