@tuya-sat/micro-script 2.3.3 → 2.3.4

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.
@@ -24,6 +24,7 @@ const index_1 = require("@tuya-sat/micro-dev-loader/dist/less/utils/index");
24
24
  const micro_utils_1 = require("@tuya-sat/micro-utils");
25
25
  const paths_1 = __importDefault(require("./paths"));
26
26
  const theme_1 = require("../utils/theme");
27
+ const DYNAMIC_CHUNK_PREFIX = "micro_app_lazy";
27
28
  const toArray = (value) => {
28
29
  return Array.isArray(value) ? value : [value];
29
30
  };
@@ -62,7 +63,7 @@ function getCommonConfig({ isDev, isBuild, }) {
62
63
  ? "static/js/[name].[contenthash:8].js"
63
64
  : "static/js/[name].bundle.js",
64
65
  chunkFilename: isBuild
65
- ? "static/js/[name].[contenthash:8].chunk.js"
66
+ ? `static/js/${DYNAMIC_CHUNK_PREFIX}-[name].[contenthash:8].chunk.js`
66
67
  : "static/js/[name].chunk.js",
67
68
  path: paths_1.default.dist,
68
69
  clean: true,
@@ -159,7 +160,7 @@ function getCommonConfig({ isDev, isBuild, }) {
159
160
  isBuild &&
160
161
  new mini_css_extract_plugin_1.default({
161
162
  filename: "static/css/[name].[contenthash:8].css",
162
- chunkFilename: "static/css/[name].[contenthash:8].chunk.css",
163
+ chunkFilename: `static/css/${DYNAMIC_CHUNK_PREFIX}-[name].[contenthash:8].chunk.css`,
163
164
  }),
164
165
  isBuild && enableThemeCompile && new micro_dev_loader_1.ThemePlugin(),
165
166
  ].filter((value) => Boolean(value)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
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.3",
24
- "@tuya-sat/micro-dev-proxy": "2.3.3",
25
- "@tuya-sat/micro-utils": "2.3.3",
23
+ "@tuya-sat/micro-dev-loader": "2.3.4",
24
+ "@tuya-sat/micro-dev-proxy": "2.3.4",
25
+ "@tuya-sat/micro-utils": "2.3.4",
26
26
  "babel-loader": "8.2.4",
27
27
  "babel-plugin-import": "1.13.3",
28
28
  "chalk": "4.1.2",