Skip to content

Commit 9ae386c

Browse files
committedApr 7, 2020
fix: move to babel.config.js
1 parent 7642f05 commit 9ae386c

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed
 

‎babel.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
"@babel/preset-env",
5+
{
6+
targets: {
7+
node: "10",
8+
},
9+
},
10+
],
11+
],
12+
plugins: ["@babel/plugin-proposal-object-rest-spread", "istanbul"],
13+
};

‎package.json

-16
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,6 @@
8888
"strip-bom": "4.0.0",
8989
"strip-json-comments": "3.0.1"
9090
},
91-
"babel": {
92-
"presets": [
93-
[
94-
"@babel/preset-env",
95-
{
96-
"targets": {
97-
"node": "10"
98-
}
99-
}
100-
]
101-
],
102-
"plugins": [
103-
"@babel/plugin-proposal-object-rest-spread",
104-
"istanbul"
105-
]
106-
},
10791
"nyc": {
10892
"extends": "@istanbuljs/nyc-config-babel",
10993
"exclude": [

0 commit comments

Comments
 (0)
Please sign in to comment.