@tarojs/service 3.7.0-alpha.1 → 3.7.0-alpha.10
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/dist/Config.js +50 -19
- package/dist/Config.js.map +1 -1
- package/dist/Kernel.js +60 -24
- package/dist/Kernel.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/platform-plugin-base/mini.js +21 -4
- package/dist/platform-plugin-base/mini.js.map +1 -1
- package/dist/platform-plugin-base/platform.js +2 -2
- package/dist/platform-plugin-base/platform.js.map +1 -1
- package/dist/platform-plugin-base/web.js +11 -2
- package/dist/platform-plugin-base/web.js.map +1 -1
- package/dist/utils/index.js +25 -8
- package/dist/utils/index.js.map +1 -1
- package/package.json +9 -7
- package/src/Config.ts +37 -9
- package/src/Kernel.ts +70 -24
- package/src/index.ts +3 -2
- package/src/platform-plugin-base/mini.ts +31 -9
- package/src/platform-plugin-base/platform.ts +3 -3
- package/src/platform-plugin-base/web.ts +11 -3
- package/src/utils/index.ts +24 -8
- package/src/utils/types.ts +9 -5
- package/types/Config.d.ts +9 -1
- package/types/Kernel.d.ts +10 -4
- package/types/index.d.ts +3 -1
- package/types/platform-plugin-base/mini.d.ts +1 -8
- package/types/platform-plugin-base/platform.d.ts +1 -1
- package/types/utils/index.d.ts +2 -2
- package/types/utils/types.d.ts +11 -5
package/types/utils/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type helper from '@tarojs/helper';
|
|
2
|
-
import type { IProjectConfig } from '@tarojs/taro/types/compile';
|
|
3
|
-
import type {
|
|
2
|
+
import type { IMiniFilesConfig, IProjectConfig } from '@tarojs/taro/types/compile';
|
|
3
|
+
import type { IModifyChainData } from '@tarojs/taro/types/compile/hooks';
|
|
4
4
|
import type joi from 'joi';
|
|
5
5
|
import type Webpack from 'webpack';
|
|
6
6
|
import type Chain from 'webpack-chain';
|
|
@@ -142,14 +142,14 @@ export declare interface IPluginContext {
|
|
|
142
142
|
modifyWebpackChain: (fn: (args: {
|
|
143
143
|
chain: Chain;
|
|
144
144
|
webpack: typeof Webpack;
|
|
145
|
-
data?:
|
|
145
|
+
data?: IModifyChainData;
|
|
146
146
|
}) => void) => void;
|
|
147
147
|
/**
|
|
148
148
|
* 编译中修改 vite 配置
|
|
149
149
|
*/
|
|
150
150
|
modifyViteConfig: (fn: (args: {
|
|
151
151
|
viteConfig: any;
|
|
152
|
-
|
|
152
|
+
data?: IModifyChainData;
|
|
153
153
|
}) => void) => void;
|
|
154
154
|
/**
|
|
155
155
|
* 修改编译后的结果
|
|
@@ -162,7 +162,13 @@ export declare interface IPluginContext {
|
|
|
162
162
|
* 修改编译过程中的页面组件配置
|
|
163
163
|
*/
|
|
164
164
|
modifyMiniConfigs: (fn: (args: {
|
|
165
|
-
configMap:
|
|
165
|
+
configMap: IMiniFilesConfig;
|
|
166
|
+
}) => void) => void;
|
|
167
|
+
/**
|
|
168
|
+
* 修改 Taro 编译配置
|
|
169
|
+
*/
|
|
170
|
+
modifyRunnerOpts: (fn: (args: {
|
|
171
|
+
opts: any;
|
|
166
172
|
}) => void) => void;
|
|
167
173
|
[key: string]: any;
|
|
168
174
|
}
|