@tarojs/taro 4.0.0-canary.5 → 4.0.0-canary.7
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-canary.
|
|
3
|
+
"version": "4.0.0-canary.7",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "4.0.0-canary.
|
|
25
|
-
"@tarojs/runtime": "4.0.0-canary.
|
|
24
|
+
"@tarojs/api": "4.0.0-canary.7",
|
|
25
|
+
"@tarojs/runtime": "4.0.0-canary.7"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tarojs/helper": "4.0.0-canary.
|
|
29
|
-
"@tarojs/shared": "4.0.0-canary.
|
|
28
|
+
"@tarojs/helper": "4.0.0-canary.7",
|
|
29
|
+
"@tarojs/shared": "4.0.0-canary.7"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|
|
32
32
|
"@types/react": {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type Chain from 'webpack-chain'
|
|
2
|
+
|
|
2
3
|
import type { IOption, IPostcssOption, IUrlLoaderOption } from './util'
|
|
4
|
+
import type { Compiler, CompilerTypes, CompilerWebpackTypes } from '../compiler'
|
|
3
5
|
|
|
4
6
|
export interface IHarmonyConfig<T extends CompilerTypes = CompilerWebpackTypes> {
|
|
7
|
+
/** Harmony 编译方式 */
|
|
8
|
+
compiler?: Compiler
|
|
9
|
+
|
|
5
10
|
/** Harmony 项目地址 */
|
|
6
11
|
projectPath: string
|
|
7
12
|
|
|
@@ -110,8 +110,10 @@ export interface ViteCompilerContext<T> {
|
|
|
110
110
|
getPages: () => VitePageMeta[]
|
|
111
111
|
isApp: (id: string) => boolean
|
|
112
112
|
isPage: (id: string) => boolean
|
|
113
|
+
isComponent: (id: string) => boolean
|
|
113
114
|
isNativePageORComponent: (templatePath: string) => boolean
|
|
114
115
|
getPageById: (id: string) => VitePageMeta| undefined
|
|
116
|
+
getComponentById: (id: string) => VitePageMeta| undefined
|
|
115
117
|
getConfigFilePath: (filePath: string) => string
|
|
116
118
|
getTargetFilePath: (filePath: string, targetExtName: string) => string
|
|
117
119
|
}
|
|
@@ -126,6 +128,7 @@ export interface ViteH5CompilerContext extends ViteCompilerContext<ViteH5BuildCo
|
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
export interface ViteHarmonyCompilerContext extends ViteCompilerContext<ViteHarmonyBuildConfig> {
|
|
131
|
+
nativeExt: string[]
|
|
129
132
|
fileType: ViteFileType
|
|
130
133
|
commonChunks: string[]
|
|
131
134
|
getCommonChunks: () => string[]
|