@tarojs/taro 4.1.12-beta.51 → 4.1.12-beta.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "4.1.12-beta.51",
3
+ "version": "4.1.12-beta.53",
4
4
  "description": "Taro framework",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@types/postcss-url": "^10.0.4",
27
- "@tarojs/api": "4.1.12-beta.51",
28
- "@tarojs/runtime": "4.1.12-beta.51"
27
+ "@tarojs/api": "4.1.12-beta.53",
28
+ "@tarojs/runtime": "4.1.12-beta.53"
29
29
  },
30
30
  "devDependencies": {
31
31
  "html-webpack-plugin": "^5.6.0",
@@ -33,9 +33,9 @@
33
33
  "webpack-chain": "^6.5.1",
34
34
  "webpack-dev-server": "^4.15.2",
35
35
  "rollup": "^3.29.4",
36
- "@tarojs/helper": "4.1.12-beta.51",
37
- "@tarojs/components": "4.1.12-beta.51",
38
- "@tarojs/shared": "4.1.12-beta.51"
36
+ "@tarojs/helper": "4.1.12-beta.53",
37
+ "@tarojs/components": "4.1.12-beta.53",
38
+ "@tarojs/shared": "4.1.12-beta.53"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@types/react": "^18",
@@ -46,9 +46,9 @@
46
46
  "webpack": "^5",
47
47
  "webpack-chain": "^6",
48
48
  "webpack-dev-server": "^4",
49
- "@tarojs/helper": "4.1.12-beta.51",
50
- "@tarojs/components": "4.1.12-beta.51",
51
- "@tarojs/shared": "4.1.12-beta.51"
49
+ "@tarojs/components": "4.1.12-beta.53",
50
+ "@tarojs/helper": "4.1.12-beta.53",
51
+ "@tarojs/shared": "4.1.12-beta.53"
52
52
  },
53
53
  "peerDependenciesMeta": {
54
54
  "@types/react": {
@@ -348,6 +348,26 @@ declare module './index' {
348
348
  * @default false
349
349
  */
350
350
  disableRecursiveComponent?: boolean
351
+ /**
352
+ * 异步分包配置。配置 asyncRoot 后启用。
353
+ * 启用后,该 root 中通过 `import()` 动态引入的模块会由 webpack 原生异步 chunk 处理,
354
+ * 并单独打包到指定的异步子包。
355
+ *
356
+ * 限制:
357
+ * - asyncRoot 下注册的页面是占位 `<view />`,不会注入 `usingComponents`。
358
+ * 因此 asyncRoot 包含自定义组件 chunk 时,自定义组件应放在 sourceRoot 的页面里使用,
359
+ * 而非由占位页面直接消费。
360
+ * - 与 `lazyCodeLoading: 'requiredComponents'` 兼容。
361
+ * @see https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/async.html
362
+ * @since 4.1.12
363
+ */
364
+ asyncSubPackage?: {
365
+ /**
366
+ * 异步子包根路径(相对于 sourceDir),必填。
367
+ * 多个 root 配置相同的 asyncRoot 时,它们的动态 import 产物会合并到同一个异步子包。
368
+ */
369
+ asyncRoot: string
370
+ }
351
371
  }
352
372
 
353
373
  /** 子分包独立模板配置项 */