I've been piecing together support for IE11 by adding plugins for transform-object-assign and array-includes and now I'm getting a symbol error for using for of loops. Instead of just tackling them one at a time, is it possible for me to work babel polyfill into my build below and future proof it?
I've read several related questions but still am not clear on how I'd fit babel-polyfill into the gulp build below:
return gulp.src(input) // Grab the input files .pipe($.babel({ presets: ['es2015'], // transform ES6 to ES5 with Babel plugins: ['transform-object-assign','array-includes'] })) .pipe($.concat(outputFile)) .pipe($.uglify({ compress: { drop_debugger: true } })) .pipe(gulp.dest(paths.output)) // Output file destination .pipe($.connect.reload()); }