@tuya-sat/micro-script 2.3.4 → 2.3.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.
|
@@ -117,28 +117,18 @@ function getCommonConfig({ isDev, isBuild, }) {
|
|
|
117
117
|
].filter(Boolean),
|
|
118
118
|
},
|
|
119
119
|
optimization: {
|
|
120
|
-
runtimeChunk: "single",
|
|
121
120
|
splitChunks: {
|
|
122
|
-
cacheGroups: Object.assign(
|
|
121
|
+
cacheGroups: Object.assign({}, (enableThemeCompile
|
|
123
122
|
? {
|
|
124
123
|
vendorCss: {
|
|
125
124
|
test: /([\\/]node_modules[\\/][\s\S]+(\.less|\.css)$)|([\\/]src[\\/]styles[\\/]global\.less)/,
|
|
126
125
|
name: "light",
|
|
127
126
|
chunks: "all",
|
|
127
|
+
minSize: 0,
|
|
128
128
|
priority: 2,
|
|
129
129
|
},
|
|
130
130
|
}
|
|
131
|
-
: {})),
|
|
132
|
-
test: /[\\/]node_modules[\\/]/,
|
|
133
|
-
name: "vendors-others",
|
|
134
|
-
chunks: "all",
|
|
135
|
-
priority: 0,
|
|
136
|
-
}, react: {
|
|
137
|
-
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
|
|
138
|
-
name: "react-related",
|
|
139
|
-
chunks: "all",
|
|
140
|
-
priority: 1,
|
|
141
|
-
} }),
|
|
131
|
+
: {})),
|
|
142
132
|
},
|
|
143
133
|
minimizer: ["...", new css_minimizer_webpack_plugin_1.default()],
|
|
144
134
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-script",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.5",
|
|
4
4
|
"bin": "./dist/bin/cli.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@babel/preset-react": "7.16.7",
|
|
21
21
|
"@babel/preset-typescript": "7.16.7",
|
|
22
22
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
23
|
-
"@tuya-sat/micro-dev-loader": "2.3.
|
|
24
|
-
"@tuya-sat/micro-dev-proxy": "2.3.
|
|
25
|
-
"@tuya-sat/micro-utils": "2.3.
|
|
23
|
+
"@tuya-sat/micro-dev-loader": "2.3.5",
|
|
24
|
+
"@tuya-sat/micro-dev-proxy": "2.3.5",
|
|
25
|
+
"@tuya-sat/micro-utils": "2.3.5",
|
|
26
26
|
"babel-loader": "8.2.4",
|
|
27
27
|
"babel-plugin-import": "1.13.3",
|
|
28
28
|
"chalk": "4.1.2",
|