Fix IE compat through babelify

Requires a polyfill for Object.assign
This commit is contained in:
Ingo Schommer 2016-04-04 12:01:43 +12:00
parent 5c8df9f16e
commit 0fadd7a15a
2 changed files with 4 additions and 1 deletions

View File

@ -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,
};

View File

@ -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",