babel-preset-taro 3.3.15 → 3.3.19

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +7 -7
package/index.js CHANGED
@@ -154,7 +154,8 @@ module.exports = (_, options = {}) => {
154
154
  packageName: '@tarojs/taro',
155
155
  apis
156
156
  }])
157
- } else {
157
+ }
158
+ if (options['dynamic-import-node'] || process.env.TARO_ENV !== 'h5') {
158
159
  plugins.push([require('babel-plugin-dynamic-import-node')])
159
160
  }
160
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-taro",
3
- "version": "3.3.15",
3
+ "version": "3.3.19",
4
4
  "description": "> TODO: description",
5
5
  "author": "yuche <i@yuche.me>",
6
6
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/babel-preset-taro#readme",
@@ -34,22 +34,22 @@
34
34
  "@babel/preset-typescript": "7.12.17",
35
35
  "@babel/runtime": "^7.11.2",
36
36
  "@babel/runtime-corejs3": "^7.14.8",
37
- "@tarojs/helper": "3.3.15",
38
- "@tarojs/taro-h5": "3.3.15",
37
+ "@tarojs/helper": "3.3.19",
38
+ "@tarojs/taro-h5": "3.3.19",
39
39
  "@vue/babel-plugin-jsx": "^1.0.6",
40
40
  "@vue/babel-preset-jsx": "^1.2.4",
41
41
  "babel-plugin-dynamic-import-node": "^2.3.3",
42
42
  "babel-plugin-global-define": "^1.0.3",
43
43
  "babel-plugin-jsx-attributes-array-to-object": "^0.3.0",
44
44
  "babel-plugin-transform-imports-api": "^1.0.0",
45
- "babel-plugin-transform-react-jsx-to-rn-stylesheet": "3.3.15",
46
- "babel-plugin-transform-taroapi": "3.3.15",
45
+ "babel-plugin-transform-react-jsx-to-rn-stylesheet": "3.3.19",
46
+ "babel-plugin-transform-taroapi": "3.3.19",
47
47
  "core-js": "^3.6.5",
48
48
  "metro-react-native-babel-preset": "^0.66.2",
49
49
  "react-refresh": "0.9.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@tarojs/taro-rn": "3.3.15"
52
+ "@tarojs/taro-rn": "3.3.19"
53
53
  },
54
- "gitHead": "4a11ab9a8950f6a580e1278c160f6b4aaa8ac4f2"
54
+ "gitHead": "e5152ac3ba4c46d5cc7af3c27a1e98ce73c2af17"
55
55
  }