Skip to content

Commit 4b85b11

Browse files
committed
fix babel setup
1 parent f8588a1 commit 4b85b11

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

gulpfile.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,7 @@ gulp.task('help', help);
88

99
gulp.task('compile', function () {
1010
return gulp.src('lib/**/*.js')
11-
.pipe(babel({
12-
presets: [
13-
'es2015',
14-
'react'
15-
],
16-
plugins: [
17-
'syntax-async-functions',
18-
'transform-async-to-generator',
19-
'transform-class-properties',
20-
'transform-runtime'
21-
]
22-
}))
11+
.pipe(babel())
2312
.pipe(gulp.dest('build/lib'));
2413
});
2514

package.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"files": [
77
"build"
88
],
9-
"dependencies": {
10-
"babel-runtime": "6.6.1"
11-
},
129
"devDependencies": {
1310
"ava": "0.13.0",
1411
"babel-eslint": "5.0.0",
@@ -19,6 +16,7 @@
1916
"babel-preset-es2015": "6.6.0",
2017
"babel-preset-react": "6.5.0",
2118
"babel-register": "6.7.2",
19+
"babel-runtime": "6.6.1",
2220
"del": "2.2.0",
2321
"eslint-config-standard": "4.4.0",
2422
"eslint-config-standard-jsx": "1.1.1",
@@ -44,10 +42,7 @@
4442
"react"
4543
],
4644
"plugins": [
47-
"syntax-async-functions",
48-
"transform-async-to-generator",
49-
"transform-class-properties",
50-
"transform-runtime"
45+
"transform-class-properties"
5146
]
5247
},
5348
"ava": {
@@ -59,6 +54,17 @@
5954
"babel-register",
6055
"./test/helpers/setup-browser-env.js"
6156
],
62-
"babel": "inherit"
57+
"babel": {
58+
"presets": [
59+
"es2015",
60+
"react"
61+
],
62+
"plugins": [
63+
"syntax-async-functions",
64+
"transform-async-to-generator",
65+
"transform-class-properties",
66+
"transform-runtime"
67+
]
68+
}
6369
}
6470
}

0 commit comments

Comments
 (0)