diff --git a/app/javascript/packs/application-old.js b/app/javascript/packs/application-old.js index a4f7c54ed..6926ac025 100644 --- a/app/javascript/packs/application-old.js +++ b/app/javascript/packs/application-old.js @@ -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'; diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index 78649f91c..73f5862e8 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.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';