emacroh5lib 1.0.90 → 1.0.94
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/babel.config.js
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
module.exports = {
|
2
2
|
presets: [
|
3
|
-
'@vue/cli-plugin-babel/preset'
|
3
|
+
'@vue/cli-plugin-babel/preset',
|
4
|
+
[
|
5
|
+
'@babel/preset-env',
|
6
|
+
{
|
7
|
+
modules: false, // preset-env在转码的时候会把es6模块化的语法转成其它模块化的语法,但在项目中我们希望保留es6模块化的语法,所以 配置modules: false,,告诉babel不需要转成其它模块化的语法
|
8
|
+
targets: {
|
9
|
+
chrome: '49', // 需要兼容的浏览器最低版本
|
10
|
+
},
|
11
|
+
},
|
12
|
+
],
|
13
|
+
'@babel/preset-react',
|
14
|
+
'@babel/preset-typescript',
|
4
15
|
]
|
5
16
|
}
|