@zohodesk/react-cli 1.1.16-exp.7 → 1.1.17
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 +14 -0
- package/bin/cli.js +0 -4
- package/lib/babel/cmjs-plugins-presets.js +5 -6
- package/lib/babel/es-plugins-presets.js +5 -6
- package/lib/configs/webpack.dev.config.js +0 -4
- package/lib/configs/webpack.prod.config.js +2 -6
- package/lib/schemas/index.js +1 -2
- package/npm-shrinkwrap.json +13 -8
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -44,6 +44,20 @@ Now to run app
|
|
|
44
44
|
|
|
45
45
|
# Change Logs
|
|
46
46
|
|
|
47
|
+
# 1.1.17 (24.1.2024)
|
|
48
|
+
|
|
49
|
+
**Feature:-**
|
|
50
|
+
|
|
51
|
+
- Updated browser data used for querying target browsers, which lead to reduced polyfills in our bundle.
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
npm run updateTargetBrowserVersions // to update browser targets
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Fixes**
|
|
58
|
+
|
|
59
|
+
- added prop types removal for es6 bundling, which is missed.
|
|
60
|
+
|
|
47
61
|
# 1.1.16 (25-10-2023)
|
|
48
62
|
|
|
49
63
|
**Feature:-**
|
package/bin/cli.js
CHANGED
|
@@ -300,8 +300,6 @@ switch (option) {
|
|
|
300
300
|
'src',
|
|
301
301
|
'-d',
|
|
302
302
|
'lib',
|
|
303
|
-
'--extensions',
|
|
304
|
-
'.js,.ts',
|
|
305
303
|
`--presets=${require.resolve('../lib/babel/cmjs-plugins-presets.js')}`,
|
|
306
304
|
'--copy-files'
|
|
307
305
|
].concat(args),
|
|
@@ -318,8 +316,6 @@ switch (option) {
|
|
|
318
316
|
'src',
|
|
319
317
|
'--out-dir',
|
|
320
318
|
'es',
|
|
321
|
-
'--extensions',
|
|
322
|
-
'.js,.ts',
|
|
323
319
|
`--presets=${require.resolve('../lib/babel/es-plugins-presets.js')}`,
|
|
324
320
|
'--copy-files'
|
|
325
321
|
].concat(args),
|
|
@@ -7,19 +7,18 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _utils = require("../utils");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
let {
|
|
11
11
|
module: {
|
|
12
12
|
mode
|
|
13
|
-
}
|
|
14
|
-
babelCustomPlugins
|
|
13
|
+
}
|
|
15
14
|
} = (0, _utils.getOptions)();
|
|
16
|
-
|
|
15
|
+
let isProd = mode.toLowerCase() === 'prod';
|
|
17
16
|
|
|
18
17
|
var _default = () => ({
|
|
19
|
-
presets: [require.resolve('@babel/preset-env'), require.resolve('@babel/preset-react')
|
|
18
|
+
presets: [require.resolve('@babel/preset-env'), require.resolve('@babel/preset-react')],
|
|
20
19
|
plugins: [[require.resolve('babel-plugin-transform-define'), isProd ? {
|
|
21
20
|
__DOCS__: false
|
|
22
|
-
} : {}]
|
|
21
|
+
} : {}]]
|
|
23
22
|
});
|
|
24
23
|
|
|
25
24
|
exports.default = _default;
|
|
@@ -7,14 +7,13 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _utils = require("../utils");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
let {
|
|
11
11
|
module: {
|
|
12
12
|
mode,
|
|
13
13
|
disableES5Transpile
|
|
14
|
-
}
|
|
15
|
-
babelCustomPlugins
|
|
14
|
+
}
|
|
16
15
|
} = (0, _utils.getOptions)();
|
|
17
|
-
|
|
16
|
+
let isProd = mode.toLowerCase() === 'prod';
|
|
18
17
|
|
|
19
18
|
var _default = () => ({
|
|
20
19
|
presets: [[require.resolve('@babel/preset-env'), disableES5Transpile ? {
|
|
@@ -26,10 +25,10 @@ var _default = () => ({
|
|
|
26
25
|
}
|
|
27
26
|
} : {
|
|
28
27
|
modules: false
|
|
29
|
-
}], require.resolve('@babel/preset-react')
|
|
28
|
+
}], require.resolve('@babel/preset-react')],
|
|
30
29
|
plugins: [[require.resolve('babel-plugin-transform-define'), isProd ? {
|
|
31
30
|
__DOCS__: false
|
|
32
|
-
} : {}], require.resolve('@babel/plugin-syntax-dynamic-import')
|
|
31
|
+
} : {}], require.resolve('@babel/plugin-syntax-dynamic-import')]
|
|
33
32
|
});
|
|
34
33
|
|
|
35
34
|
exports.default = _default;
|
|
@@ -127,8 +127,8 @@ module.exports = {
|
|
|
127
127
|
}
|
|
128
128
|
} : {
|
|
129
129
|
modules: false
|
|
130
|
-
}], require.resolve('@babel/preset-react')
|
|
131
|
-
plugins: disableES5Transpile ? [removeAttribute ? require.resolve('../utils/removeAttributes') : false, require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
|
|
130
|
+
}], require.resolve('@babel/preset-react')],
|
|
131
|
+
plugins: disableES5Transpile ? [removeAttribute ? require.resolve('../utils/removeAttributes') : false, require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), shouldRemovePropTypes ? [require.resolve('babel-plugin-transform-react-remove-prop-types'), removePropTypes] : false, devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
|
|
132
132
|
exclude: ['error', 'log']
|
|
133
133
|
}] : null].filter(Boolean) : [removeAttribute ? require.resolve('../utils/removeAttributes') : false, shouldRemovePropTypes ? [require.resolve('babel-plugin-transform-react-remove-prop-types'), removePropTypes] : false, [require.resolve('@babel/plugin-transform-runtime'), {
|
|
134
134
|
helpers: true,
|
|
@@ -230,10 +230,6 @@ module.exports = {
|
|
|
230
230
|
minimize: false
|
|
231
231
|
}
|
|
232
232
|
}]
|
|
233
|
-
}, {
|
|
234
|
-
test: /\.ts$/,
|
|
235
|
-
use: 'ts-loader',
|
|
236
|
-
include: _path.default.join(appPath, folder)
|
|
237
233
|
}, {
|
|
238
234
|
test: /\.worker.js$/,
|
|
239
235
|
use: {
|
package/lib/schemas/index.js
CHANGED
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/react-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@zohodesk/react-cli",
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.17",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/cli": "7.10.5",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"babel-plugin-transform-dynamic-import": "2.1.0",
|
|
32
32
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
33
33
|
"babel-plugin-transform-remove-console": "6.9.4",
|
|
34
|
+
"caniuse-lite": "1.0.30001579",
|
|
34
35
|
"case-sensitive-paths-webpack-plugin": "2.3.0",
|
|
35
36
|
"compression": "1.7.4",
|
|
36
37
|
"copy-webpack-plugin": "5.1.2",
|
|
@@ -4678,9 +4679,9 @@
|
|
|
4678
4679
|
}
|
|
4679
4680
|
},
|
|
4680
4681
|
"node_modules/caniuse-lite": {
|
|
4681
|
-
"version": "1.0.
|
|
4682
|
-
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.
|
|
4683
|
-
"integrity": "sha512-
|
|
4682
|
+
"version": "1.0.30001579",
|
|
4683
|
+
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz",
|
|
4684
|
+
"integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==",
|
|
4684
4685
|
"funding": [
|
|
4685
4686
|
{
|
|
4686
4687
|
"type": "opencollective",
|
|
@@ -4689,6 +4690,10 @@
|
|
|
4689
4690
|
{
|
|
4690
4691
|
"type": "tidelift",
|
|
4691
4692
|
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
"type": "github",
|
|
4696
|
+
"url": "https://github.com/sponsors/ai"
|
|
4692
4697
|
}
|
|
4693
4698
|
]
|
|
4694
4699
|
},
|
|
@@ -22518,9 +22523,9 @@
|
|
|
22518
22523
|
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
|
|
22519
22524
|
},
|
|
22520
22525
|
"caniuse-lite": {
|
|
22521
|
-
"version": "1.0.
|
|
22522
|
-
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.
|
|
22523
|
-
"integrity": "sha512-
|
|
22526
|
+
"version": "1.0.30001579",
|
|
22527
|
+
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz",
|
|
22528
|
+
"integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA=="
|
|
22524
22529
|
},
|
|
22525
22530
|
"capture-exit": {
|
|
22526
22531
|
"version": "2.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/react-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "A CLI tool for build modern web application and libraries",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"init": "node ./lib/utils/init.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"prepublishOnly": "npm prune --production",
|
|
13
13
|
"lint": "eslint src ./bin/cli.js",
|
|
14
14
|
"postpublish": "node postpublish.js",
|
|
15
|
-
"expublish": "npm publish --tag experimental-version"
|
|
15
|
+
"expublish": "npm publish --tag experimental-version",
|
|
16
|
+
"updateTargetBrowserVersions": "npx update-browserslist-db@latest"
|
|
16
17
|
},
|
|
17
18
|
"engines": {
|
|
18
19
|
"node": ">=8.15.1"
|
|
@@ -39,7 +40,6 @@
|
|
|
39
40
|
"@babel/plugin-transform-runtime": "7.11.0",
|
|
40
41
|
"@babel/preset-env": "7.11.0",
|
|
41
42
|
"@babel/preset-react": "7.10.4",
|
|
42
|
-
"@babel/preset-typescript": "7.23.2",
|
|
43
43
|
"@babel/runtime": "7.11.2",
|
|
44
44
|
"@zohodesk/client_packages_group": "1.0.2",
|
|
45
45
|
"@zohodesk/eslint-plugin-react-performance": "1.0.3",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"babel-plugin-transform-dynamic-import": "2.1.0",
|
|
56
56
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
57
57
|
"babel-plugin-transform-remove-console": "6.9.4",
|
|
58
|
+
"caniuse-lite": "1.0.30001579",
|
|
58
59
|
"case-sensitive-paths-webpack-plugin": "2.3.0",
|
|
59
60
|
"compression": "1.7.4",
|
|
60
61
|
"copy-webpack-plugin": "5.1.2",
|
|
@@ -97,8 +98,6 @@
|
|
|
97
98
|
"redux-mock-store": "1.5.4",
|
|
98
99
|
"rimraf": "3.0.2",
|
|
99
100
|
"script-loader": "0.7.2",
|
|
100
|
-
"ts-loader": "8.2.0",
|
|
101
|
-
"typescript": "5.2.2",
|
|
102
101
|
"uglifycss": "0.0.29",
|
|
103
102
|
"url-loader": "4.1.0",
|
|
104
103
|
"webpack": "4.44.1",
|