@tarojs/taro 4.0.0-beta.10 → 4.0.0-beta.11
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.11",
|
|
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.11"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/helper": "4.0.0-beta.
|
|
28
|
-
"@tarojs/shared": "4.0.0-beta.
|
|
29
|
-
"@tarojs/runtime": "4.0.0-beta.
|
|
27
|
+
"@tarojs/helper": "4.0.0-beta.11",
|
|
28
|
+
"@tarojs/shared": "4.0.0-beta.11",
|
|
29
|
+
"@tarojs/runtime": "4.0.0-beta.11"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@tarojs/helper": "~4.0.0-beta.
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
32
|
+
"@tarojs/helper": "~4.0.0-beta.11",
|
|
33
|
+
"@tarojs/shared": "~4.0.0-beta.11",
|
|
34
|
+
"@tarojs/runtime": "~4.0.0-beta.11"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@types/react": {
|
|
@@ -20,6 +20,24 @@ export interface IHarmonyConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
20
20
|
*/
|
|
21
21
|
name?: string
|
|
22
22
|
|
|
23
|
+
/** oh-package.json 配置 */
|
|
24
|
+
ohPackage?: {
|
|
25
|
+
dependencies?: { [name: string]: string }
|
|
26
|
+
devDependencies?: { [name: string]: string }
|
|
27
|
+
main?: string
|
|
28
|
+
[k: string]: any
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** ohpm-cli
|
|
32
|
+
* @default "~/Library/Huawei/ohpm/bin/ohpm"
|
|
33
|
+
*/
|
|
34
|
+
ohpm?: string
|
|
35
|
+
|
|
36
|
+
/** 核心依赖前缀
|
|
37
|
+
* @description 用于告诉编译内容如何解析核心依赖,传入时将直接使用依赖前缀,同时不会为工程导入核心依赖
|
|
38
|
+
*/
|
|
39
|
+
chorePackagePrefix?: string
|
|
40
|
+
|
|
23
41
|
/** 用于告诉 Taro 编译器需要抽取的公共文件 */
|
|
24
42
|
commonChunks?: string[] | ((commonChunks: string[]) => string[])
|
|
25
43
|
|
|
@@ -135,7 +135,7 @@ export interface ViteHarmonyCompilerContext extends ViteCompilerContext<ViteHarm
|
|
|
135
135
|
nativeComponents : Map<string, ViteNativeCompMeta>
|
|
136
136
|
getCommonChunks: () => string[]
|
|
137
137
|
modifyHarmonyConfig: (config: Partial<AppConfig>) => void
|
|
138
|
-
|
|
138
|
+
modifyHostPackage: (deps?: Record<string, string>, devDeps?: Record<string, string>) => Exclude<IHarmonyConfig['ohPackage'], void>
|
|
139
139
|
collectNativeComponents: (meta: ViteAppMeta | VitePageMeta | ViteNativeCompMeta) => void
|
|
140
140
|
getScriptPath: (filePath: string) => string
|
|
141
141
|
getStylePath: (filePath: string) => string
|