webpack: add babel-polyfill at runtime
This includes the polyfills for features that need to be emulated at runtime (see https://github.com/babel/babel-preset-env/issues/203#issuecomment-285820866) It fixes a "Symbol not defined" error when using `for… in` loops on Internet Explorer 11. This caused the dossiers not to be submitted. Fix #2300
This commit is contained in:
parent
e2dda81b04
commit
4f9384d6bd
2 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,11 @@ import Highcharts from 'highcharts';
|
|||
import Bloodhound from 'bloodhound-js';
|
||||
import jQuery from 'jquery';
|
||||
|
||||
// Include runtime-polyfills for older browsers.
|
||||
// Due to .babelrc's 'useBuiltIns', only polyfills actually
|
||||
// required by the browsers we support will be included.
|
||||
import 'babel-polyfill';
|
||||
|
||||
import 'select2';
|
||||
import 'typeahead.js';
|
||||
|
||||
|
|
|
@ -6,6 +6,11 @@ import Chartkick from 'chartkick';
|
|||
import Highcharts from 'highcharts';
|
||||
import jQuery from 'jquery';
|
||||
|
||||
// Include runtime-polyfills for older browsers.
|
||||
// Due to .babelrc's 'useBuiltIns', only polyfills actually
|
||||
// required by the browsers we support will be included.
|
||||
import 'babel-polyfill';
|
||||
|
||||
import 'select2';
|
||||
import 'typeahead.js';
|
||||
|
||||
|
|
Loading…
Reference in a new issue