Add polyfills for IE11

This commit is contained in:
Roman Hotsiy 2017-11-20 12:06:10 +02:00
parent 6d7fd547b1
commit 141b9f6551
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,9 @@
import 'core-js/es6/promise';
import 'core-js/fn/object/assign';
import 'core-js/fn/string/starts-with';
import 'core-js/fn/string/ends-with';
import 'core-js/fn/array/find';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/symbol';

View File

@ -19,6 +19,7 @@ export default env => {
? ['./perf/index.tsx'] // perf test
: [
// playground
'./src/polyfills.ts',
'react-dev-utils/webpackHotDevClient',
'react-hot-loader/patch',
'./demo/playground/hmr-playground.tsx',
@ -34,6 +35,7 @@ export default env => {
devServer: {
contentBase: __dirname + '/demo',
host: '0.0.0.0',
watchContentBase: true,
port: 9090,
stats: 'errors-only',
@ -51,7 +53,7 @@ export default env => {
externals: {
esprima: 'esprima',
'node-fetch': 'fetch',
'node-fetch': 'null',
},
module: {