@tarojs/taro 3.6.29 → 3.6.31-alpha.0

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.29",
3
+ "version": "3.6.31-alpha.0",
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.29"
24
+ "@tarojs/api": "3.6.31-alpha.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@tarojs/helper": "3.6.29",
28
- "@tarojs/runtime": "3.6.29"
27
+ "@tarojs/runtime": "3.6.31-alpha.0",
28
+ "@tarojs/helper": "3.6.31-alpha.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@tarojs/helper": "~3.6.29",
32
- "@tarojs/runtime": "~3.6.29"
31
+ "@tarojs/runtime": "~3.6.31-alpha.0",
32
+ "@tarojs/helper": "~3.6.31-alpha.0"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@types/react": {
@@ -14,6 +14,8 @@ export interface IH5RouterConfig {
14
14
  lazyload?: boolean | ((pagename: string) => boolean)
15
15
  renamePagename?: (pagename: string) => string
16
16
  forcePath?: string
17
+ /** 加上这个参数,可以解决返回页面的时候白屏的问题,但是某些不支持 :has() 选择器的浏览器会有问题 */
18
+ enhanceAnimation?: boolean
17
19
  }
18
20
 
19
21
  export interface IH5Config {
@@ -1,5 +1,6 @@
1
1
  export * from './h5'
2
2
  export * from './mini'
3
+ export * from './rn'
3
4
 
4
5
  export * from './manifest'
5
6
  export * from './project'
@@ -2,6 +2,7 @@ import type Webpack from 'webpack'
2
2
  import type Chain from 'webpack-chain'
3
3
  import type webpackDevServer from 'webpack-dev-server'
4
4
  import type HtmlWebpackPlugin from 'html-webpack-plugin'
5
+ import type { RollupOptions } from 'rollup'
5
6
  import type { IOption, IPostcssOption } from './util'
6
7
 
7
8
  export interface IRNConfig {
@@ -61,4 +62,24 @@ export interface IRNConfig {
61
62
 
62
63
  /** 设计稿尺寸换算规则 */
63
64
  deviceRatio?: TaroGeneral.TDeviceRatio
65
+
66
+ /** 原生组件编译配置 */
67
+ nativeComponents?: {
68
+ /**
69
+ * 外部依赖
70
+ */
71
+ external?: Array<string | RegExp> | ((arr: Array<string | RegExp>) => Array<string | RegExp>)
72
+ /**
73
+ * 设置外部依赖,如果返回 string, 则将该值作为 external, 我们默认将 node_modules 路径下的文件设置为外部依赖
74
+ */
75
+ exteranlResolve?: (importee: string, importer: string) => string
76
+ /**
77
+ * 组件输出路径,默认值为 'dist'
78
+ */
79
+ output?: string
80
+ /**
81
+ * 修改 Rollup 打包配置
82
+ */
83
+ modifyRollupConfig?: (config: RollupOptions, innerPlugins: { taroResolver: typeof taroResolver, styleTransformer: typeof styleTransformer }) => RollupOptions
84
+ }
64
85
  }