@tuya-sat/micro-script 3.0.14 → 3.0.16

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.
@@ -175,14 +175,11 @@ function getCommonConfig({ isDev, isBuild, }) {
175
175
  minimizer: ['...', new css_minimizer_webpack_plugin_1.default()],
176
176
  },
177
177
  plugins: [
178
- ...[
179
- (htmlplugins === null || htmlplugins === void 0 ? void 0 : htmlplugins.length) > 0
180
- ? htmlplugins
181
- : new html_webpack_plugin_1.default({
182
- inject: true,
183
- template: paths_1.default.spaHtml,
184
- }),
185
- ],
178
+ new html_webpack_plugin_1.default({
179
+ inject: true,
180
+ template: paths_1.default.spaHtml,
181
+ }),
182
+ ...htmlplugins,
186
183
  new copy_webpack_plugin_1.default({
187
184
  patterns: [
188
185
  {
@@ -223,12 +220,10 @@ function getCommonConfig({ isDev, isBuild, }) {
223
220
  }));
224
221
  });
225
222
  console.log('multiAppsWebpackConfig', multiAppsWebpackConfig);
226
- const appsResult = (0, webpack_merge_1.merge)(getWebpackConfig(multiAppsWebpackConfig.plugins), {
223
+ return (0, webpack_merge_1.merge)(getWebpackConfig(multiAppsWebpackConfig.plugins), {
227
224
  entry: multiAppsWebpackConfig.entry,
228
225
  });
229
- return appsResult;
230
226
  }
231
- const result = getWebpackConfig([]);
232
- return result;
227
+ return getWebpackConfig([]);
233
228
  }
234
229
  exports.default = getCommonConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.0.14",
3
+ "version": "3.0.16",
4
4
  "bin": "./dist/bin/cli.js",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
@@ -23,9 +23,9 @@
23
23
  "@babel/preset-typescript": "7.16.7",
24
24
  "@babel/traverse": "^7.20.13",
25
25
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
26
- "@tuya-sat/micro-dev-loader": "3.0.14",
27
- "@tuya-sat/micro-dev-proxy": "3.0.14",
28
- "@tuya-sat/micro-utils": "3.0.14",
26
+ "@tuya-sat/micro-dev-loader": "3.0.16",
27
+ "@tuya-sat/micro-dev-proxy": "3.0.16",
28
+ "@tuya-sat/micro-utils": "3.0.16",
29
29
  "@types/kill-port": "^2.0.0",
30
30
  "babel-loader": "8.2.4",
31
31
  "babel-plugin-import": "1.13.3",