@tarojs/taro 3.7.0-alpha.20 → 3.7.0-alpha.22

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.7.0-alpha.20",
3
+ "version": "3.7.0-alpha.22",
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": "3.7.0-alpha.20",
25
- "@tarojs/runtime": "3.7.0-alpha.20"
24
+ "@tarojs/api": "3.7.0-alpha.22",
25
+ "@tarojs/runtime": "3.7.0-alpha.22"
26
26
  },
27
27
  "devDependencies": {
28
- "@tarojs/helper": "3.7.0-alpha.20",
29
- "@tarojs/shared": "3.7.0-alpha.20"
28
+ "@tarojs/helper": "3.7.0-alpha.22",
29
+ "@tarojs/shared": "3.7.0-alpha.22"
30
30
  },
31
31
  "peerDependenciesMeta": {
32
32
  "@types/react": {
@@ -111,8 +111,9 @@ export interface IH5Config <T extends CompilerTypes = CompilerWebpackTypes> {
111
111
 
112
112
  /** Web 编译过程的相关配置 */
113
113
  compile?: {
114
- exclude?: any[]
115
- include?: any[]
114
+ exclude?: (string | RegExp)[]
115
+ include?: (string | RegExp)[]
116
+ filter?: (filename: string) => boolean
116
117
  }
117
118
  /** 是否把代码转化为 es5,只在 vite 编译模式下有效 */
118
119
  es5?: T extends 'vite' ? boolean : undefined
@@ -102,8 +102,9 @@ export interface IMiniAppConfig<T extends CompilerTypes = CompilerWebpackTypes>
102
102
 
103
103
  /** 小程序编译过程的相关配置 */
104
104
  compile?: {
105
- exclude?: any[]
106
- include?: any[]
105
+ exclude?: (string | RegExp)[]
106
+ include?: (string | RegExp)[]
107
+ filter?: (filename: string) => boolean
107
108
  }
108
109
 
109
110
  /** 插件内部使用 */