Adding babel-polyfill to fix errors

This commit is contained in:
Jeff Avallone 2015-11-10 20:59:26 -05:00
parent 4bf5e826b1
commit dcc1cd3968
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
{ {
"presets": ["es2015"] "presets": ["es2015"],
"plugins": ["transform-runtime"]
} }

View File

@ -116,6 +116,7 @@ gulp.task('scripts', 'Build scripts into ./build directory', function() {
return browserify(config.browserify) return browserify(config.browserify)
.transform(canopy) .transform(canopy)
.transform(babelify) .transform(babelify)
.add(require.resolve('babel-polyfill'))
.add('./src/js/main.js') .add('./src/js/main.js')
.bundle() .bundle()
.on('error', notify.onError()) .on('error', notify.onError())

View File

@ -10,7 +10,10 @@
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"babel-plugin-transform-runtime": "^6.1.2",
"babel-polyfill": "^6.0.16",
"babel-preset-es2015": "^6.0.14", "babel-preset-es2015": "^6.0.14",
"babel-runtime": "^6.0.14",
"babelify": "^7.1.0", "babelify": "^7.1.0",
"browserify": "^12.0.1", "browserify": "^12.0.1",
"canopy": "^0.2.0", "canopy": "^0.2.0",