Skip to content

Commit

Permalink
Replace babel-preset-es2015 with babel-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
AngrySnout committed Feb 20, 2018
1 parent b575335 commit e884acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gulpfile.js
Expand Up @@ -82,7 +82,7 @@ gulp.task('js', () => {
return gulp.src('./src/**/*')
.pipe(plumber())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(babel({ presets: ['es2015'] }))
.pipe(babel({ presets: ['env'] }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./build/'));
});
Expand All @@ -97,7 +97,7 @@ gulp.task('watch', () => {
.pipe(plumber())
.pipe(watch('src/**/*'))
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(babel({ presets: ['es2015'] }))
.pipe(babel({ presets: ['env'] }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./build/'));
});
Expand Down

0 comments on commit e884acf

Please sign in to comment.