{
- "plugins": ["transform-es2015-modules-umd"],
- "presets": ["es2015"]
+ "plugins": [
+ "transform-es2015-arrow-functions",
+ "transform-es2015-block-scoped-functions",
+ "transform-es2015-block-scoping",
+ "transform-es2015-classes",
+ "transform-es2015-destructuring",
+ "transform-es2015-modules-umd",
+ "transform-es2015-template-literals",
+ "transform-es2015-parameters",
+ "transform-es2015-spread",
+ ]
}
\ No newline at end of file
gulp.task('javascript:foundation', function() {
return gulp.src(FOUNDATION)
- .pipe(babel({
- presets: ['es2015']
- }))
+ .pipe(babel())
.pipe(concat('foundation.js'))
.pipe(gulp.dest('_build/assets/js'));
});
"license": "MIT",
"devDependencies": {
"babel-core": "^6.3.26",
+ "babel-plugin-transform-es2015-arrow-functions": "^6.3.13",
+ "babel-plugin-transform-es2015-block-scoped-functions": "^6.3.13",
+ "babel-plugin-transform-es2015-block-scoping": "^6.4.0",
+ "babel-plugin-transform-es2015-classes": "^6.3.15",
+ "babel-plugin-transform-es2015-destructuring": "^6.3.15",
"babel-plugin-transform-es2015-modules-umd": "^6.3.13",
- "babel-preset-es2015": "^6.3.13",
+ "babel-plugin-transform-es2015-parameters": "^6.3.26",
+ "babel-plugin-transform-es2015-spread": "^6.4.0",
+ "babel-plugin-transform-es2015-template-literals": "^6.3.13",
"bootcamp": "^1.1.7",
"browser-sync": "^2.8.2",
"clipboard": "^1.5.5",