@tarojs/taro 3.6.27 → 3.6.28
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": "3.6.
|
|
3
|
+
"version": "3.6.28",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.6.
|
|
24
|
+
"@tarojs/api": "3.6.28"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/helper": "3.6.
|
|
28
|
-
"@tarojs/runtime": "3.6.
|
|
27
|
+
"@tarojs/helper": "3.6.28",
|
|
28
|
+
"@tarojs/runtime": "3.6.28"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tarojs/helper": "~3.6.
|
|
32
|
-
"@tarojs/runtime": "~3.6.
|
|
31
|
+
"@tarojs/helper": "~3.6.28",
|
|
32
|
+
"@tarojs/runtime": "~3.6.28"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@types/react": {
|
|
@@ -7,6 +7,7 @@ import type { ICopyOptions, IOption, ISassOptions, TogglableOptions } from './ut
|
|
|
7
7
|
import type { IH5Config } from './h5'
|
|
8
8
|
import type { IMiniAppConfig } from './mini'
|
|
9
9
|
import { IRNConfig } from './rn'
|
|
10
|
+
import { AppConfig } from '../..'
|
|
10
11
|
|
|
11
12
|
export type PluginItem<T = object> = string | [string, T] | [string, () => T | Promise<T>]
|
|
12
13
|
|
|
@@ -176,6 +177,8 @@ export interface IProjectBaseConfig {
|
|
|
176
177
|
|
|
177
178
|
onWebpackChainReady?: (webpackChain: Chain) => Promise<any>
|
|
178
179
|
|
|
180
|
+
modifyAppConfig?: (appConfig: AppConfig) => Promise<any>
|
|
181
|
+
|
|
179
182
|
/**
|
|
180
183
|
* 编译中修改 webpack 配置,在这个钩子中,你可以对 webpackChain 作出想要的调整,等同于配置 [`webpackChain`](./config-detail#miniwebpackchain)
|
|
181
184
|
*/
|
package/types/taro.config.d.ts
CHANGED
|
@@ -424,7 +424,7 @@ declare module './index' {
|
|
|
424
424
|
decodeQuery?: 'disable'
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
-
interface AppConfig {
|
|
427
|
+
export interface AppConfig {
|
|
428
428
|
/** 小程序默认启动首页,未指定 entryPagePath 时,数组的第一项代表小程序的初始页面(首页)。 */
|
|
429
429
|
entryPagePath?: string
|
|
430
430
|
/** 接受一个数组,每一项都是字符串,来指定小程序由哪些页面组成,数组的第一项代表小程序的初始页面 */
|