@zohodesk/react-cli 1.1.5-exp.4 → 1.1.5-exp.5

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,9 @@ Now to run app
44
44
 
45
45
  # Change Logs
46
46
 
47
+ # 1.1.5-exp.5
48
+ - fixed the issues regarding custom chunks base config schema.
49
+
47
50
  # 1.1.5-exp.4
48
51
  - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
49
52
 
@@ -59,7 +59,7 @@ function rulesMatcher(pattern) {
59
59
  }
60
60
 
61
61
  const baseSplitChunkConfig = Object.assign({
62
- minSize: 12000
62
+ minSize: 15000
63
63
  }, customChunksBaseConfig);
64
64
  const specificCacheGroupConfig = {
65
65
  'react.vendor': {
@@ -125,11 +125,11 @@ customChunks.map((obj, index) => ({
125
125
  obj.maxSize = maxSize;
126
126
  }
127
127
 
128
- if (name) {
128
+ if (name !== undefined) {
129
129
  obj.name = name;
130
130
  }
131
131
 
132
- if (reuseExistingChunk) {
132
+ if (reuseExistingChunk !== undefined) {
133
133
  obj.reuseExistingChunk = reuseExistingChunk;
134
134
  }
135
135
 
@@ -333,7 +333,7 @@ var _default = {
333
333
  inject: true
334
334
  },
335
335
  removePropTypes: false,
336
- customChunksBaseConfig: {},
336
+ customChunksBaseConfig: null,
337
337
  customChunks: [{
338
338
  name: 'styles',
339
339
  pattern: '\\.css$'
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.5-exp.4",
3
+ "version": "1.1.5-exp.5",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/react-cli",
9
- "version": "1.1.5-exp.4",
9
+ "version": "1.1.5-exp.5",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@babel/cli": "7.10.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.5-exp.4",
3
+ "version": "1.1.5-exp.5",
4
4
  "description": "A CLI tool for build modern web application and libraries",
5
5
  "scripts": {
6
6
  "init": "node ./lib/utils/init.js",