Skip to content

Commit 4b27725

Browse files
author
winddies
authored
fix unsafe package (#445)
* fix unsafe package * upgrade node version * 调整 babel 使用姿势
1 parent 32cd958 commit 4b27725

File tree

6 files changed

+11358
-7298
lines changed

6 files changed

+11358
-7298
lines changed

.babelrc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
{
22
"presets": [
33
[
4-
"env",
4+
"@babel/preset-env",
55
{
6-
"loose": true,
6+
"useBuiltIns": "usage", // 在文件需要的位置单独按需引入 polyfill
77
"targets": {
88
"browsers": ["last 2 versions", "ie >= 8"]
99
}
1010
}
1111
]
1212
],
13-
"plugins": ["transform-runtime", "transform-object-rest-spread"]
13+
"plugins": [
14+
[
15+
"@babel/transform-runtime",
16+
{
17+
"corejs": 2
18+
}
19+
],
20+
"@babel/proposal-object-rest-spread"
21+
]
1422
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ deploy.sh
66
npm-debug.log
77
dist
88
test/config.json
9+
coverage

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- '6'
3+
- '12'
44
cache:
55
directories:
66
- node_modules

0 commit comments

Comments
 (0)