@tarojs/service 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 +6 -6
- package/types/utils/types.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/service",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.28",
|
|
4
4
|
"description": "Taro Service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"tapable": "^1.1.3",
|
|
30
30
|
"webpack-merge": "^4.2.2",
|
|
31
31
|
"ora": "^5.0.0",
|
|
32
|
-
"@tarojs/helper": "3.6.
|
|
32
|
+
"@tarojs/helper": "3.6.28"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"webpack": "5.78.0",
|
|
36
|
-
"@tarojs/shared": "3.6.
|
|
37
|
-
"@tarojs/taro": "3.6.
|
|
36
|
+
"@tarojs/shared": "3.6.28",
|
|
37
|
+
"@tarojs/taro": "3.6.28"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@tarojs/shared": "~3.6.
|
|
41
|
-
"@tarojs/taro": "~3.6.
|
|
40
|
+
"@tarojs/shared": "~3.6.28",
|
|
41
|
+
"@tarojs/taro": "~3.6.28"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "run-s clean prod",
|
package/types/utils/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppConfig } from '@tarojs/taro';
|
|
1
2
|
import type helper from '@tarojs/helper';
|
|
2
3
|
import type { Func, IProjectConfig } from '@tarojs/taro/types/compile';
|
|
3
4
|
import type { IModifyChainData } from '@tarojs/taro/types/compile/hooks';
|
|
@@ -135,6 +136,12 @@ export declare interface IPluginContext {
|
|
|
135
136
|
compiler: Webpack.Compiler;
|
|
136
137
|
plugin: any;
|
|
137
138
|
}) => void) => void;
|
|
139
|
+
/**
|
|
140
|
+
* 编译前,修改 App 配置
|
|
141
|
+
*/
|
|
142
|
+
modifyAppConfig: (fn: (args: {
|
|
143
|
+
appConfig: AppConfig;
|
|
144
|
+
}) => void) => void;
|
|
138
145
|
/**
|
|
139
146
|
* 编译中修改 webpack 配置,在这个钩子中,你可以对 webpackChain 作出想要的调整,等同于配置 [`webpackChain`](./config-detail.md#miniwebpackchain)
|
|
140
147
|
*/
|