@tarojs/taro 4.0.0-beta.62 → 4.0.0-beta.63
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.63",
|
|
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.63"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/
|
|
28
|
-
"@tarojs/
|
|
29
|
-
"@tarojs/runtime": "4.0.0-beta.
|
|
27
|
+
"@tarojs/shared": "4.0.0-beta.63",
|
|
28
|
+
"@tarojs/helper": "4.0.0-beta.63",
|
|
29
|
+
"@tarojs/runtime": "4.0.0-beta.63"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@tarojs/helper": "~4.0.0-beta.
|
|
33
|
-
"@tarojs/shared": "~4.0.0-beta.
|
|
34
|
-
"@tarojs/runtime": "~4.0.0-beta.
|
|
32
|
+
"@tarojs/helper": "~4.0.0-beta.63",
|
|
33
|
+
"@tarojs/shared": "~4.0.0-beta.63",
|
|
34
|
+
"@tarojs/runtime": "~4.0.0-beta.63"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@types/react": {
|
|
@@ -53,6 +53,16 @@ export interface IHarmonyConfig<T extends CompilerTypes = 'vite'> {
|
|
|
53
53
|
filter?: (filename: string) => boolean
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
/** 用于配置半编译模式下的选项 */
|
|
57
|
+
compileModeSetting?: {
|
|
58
|
+
componentReplace?: {
|
|
59
|
+
[key: string]: {
|
|
60
|
+
current_init: string
|
|
61
|
+
dependency_define: string
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
56
66
|
/** 用于控制是否生成 js、css 对应的 sourceMap (默认值:watch 模式下为 true,否则为 false) */
|
|
57
67
|
enableSourceMap?: boolean
|
|
58
68
|
|
|
@@ -70,10 +80,10 @@ export interface IHarmonyConfig<T extends CompilerTypes = 'vite'> {
|
|
|
70
80
|
webpackChain?: (chain: Chain, webpack: typeof Webpack) => void
|
|
71
81
|
|
|
72
82
|
/** webpack 编译模式下,可用于修改、拓展 Webpack 的 output 选项,配置项参考[官方文档](https://webpack.js.org/configuration/output/)
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
* vite 编译模式下,用于修改、扩展 rollup 的 output,目前仅适配 chunkFileNames 和 assetFileNames 两个配置,修改其他配置请使用 vite 插件进行修改。配置想参考[官方文档](https://rollupjs.org/configuration-options/)
|
|
84
|
+
*/
|
|
75
85
|
output?: T extends 'vite'
|
|
76
|
-
? Pick<RollupOutputOptions, 'chunkFileNames'>
|
|
86
|
+
? Pick<RollupOutputOptions, 'chunkFileNames'> & OutputExt
|
|
77
87
|
: Webpack.Configuration['output'] & OutputExt
|
|
78
88
|
|
|
79
89
|
/** 路由相关的配置 */
|