@tarojs/taro 4.0.0-beta.43 → 4.0.0-beta.44
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.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.44",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "4.0.0-beta.
|
|
24
|
+
"@tarojs/api": "4.0.0-beta.44"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/
|
|
28
|
-
"@tarojs/
|
|
29
|
-
"@tarojs/
|
|
27
|
+
"@tarojs/helper": "4.0.0-beta.44",
|
|
28
|
+
"@tarojs/shared": "4.0.0-beta.44",
|
|
29
|
+
"@tarojs/runtime": "4.0.0-beta.44"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
32
|
+
"@tarojs/helper": "~4.0.0-beta.44",
|
|
33
|
+
"@tarojs/shared": "~4.0.0-beta.44",
|
|
34
|
+
"@tarojs/runtime": "~4.0.0-beta.44"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@types/react": {
|
|
@@ -6,7 +6,12 @@ import type { IOption, IPostcssOption, IUrlLoaderOption } from './util'
|
|
|
6
6
|
import type { CompilerTypes, CompilerWebpackTypes } from '../compiler'
|
|
7
7
|
import type { OutputExt } from './project'
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface IHarmonyRouterConfig {
|
|
10
|
+
/** 配置自定义路由 */
|
|
11
|
+
customRoutes?: IOption
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IHarmonyConfig<T extends CompilerTypes = 'vite'> {
|
|
10
15
|
/** Harmony 项目地址 */
|
|
11
16
|
projectPath: string
|
|
12
17
|
|
|
@@ -74,6 +79,9 @@ export interface IHarmonyConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
74
79
|
? Pick<RollupOutputOptions, 'chunkFileNames'> & OutputExt
|
|
75
80
|
: Webpack.Configuration['output'] & OutputExt
|
|
76
81
|
|
|
82
|
+
/** 路由相关的配置 */
|
|
83
|
+
router?: IHarmonyRouterConfig
|
|
84
|
+
|
|
77
85
|
/** 配置 postcss 相关插件 */
|
|
78
86
|
postcss?: IPostcssOption<'harmony'>
|
|
79
87
|
|