From 0fadd7a15a6b256322639b44ba687bafb506f1da Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 4 Apr 2016 12:01:43 +1200 Subject: [PATCH] Fix IE compat through babelify Requires a polyfill for Object.assign --- gulpfile.js | 3 ++- package.json | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 50883d270..aacaa0af6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -49,7 +49,8 @@ const browserifyOptions = { }; const babelifyOptions = { - presets: ['es2015', 'react'], + presets: ['es2015', 'es2015-ie', 'react'], + plugins: ['transform-object-assign'], ignore: /(node_modules|thirdparty)/, comments: false, }; diff --git a/package.json b/package.json index 436305ede..952768cad 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,9 @@ "babel-core": "^6.7.4", "babel-jest": "^9.0.3", "babel-plugin-transform-es2015-modules-umd": "^6.6.5", + "babel-plugin-transform-object-assign": "^6.5.0", "babel-preset-es2015": "^6.6.0", + "babel-preset-es2015-ie": "^6.6.1", "babel-preset-react": "^6.5.0", "babelify": "^7.2.0", "browserify": "^13.0.0",