Merge pull request #2549 from tchak/polyfills

Add some usefull polyfills for old browsers
This commit is contained in:
gregoirenovel 2018-09-12 10:05:27 +02:00 committed by GitHub
commit 3a1e44916a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 10 deletions

View file

@ -1,13 +1,9 @@
import '../shared/polyfills';
import Turbolinks from 'turbolinks';
import Rails from 'rails-ujs';
import ActiveStorage from '../shared/activestorage/ujs';
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 '../shared/sentry';
import '../shared/rails-ujs-fix';
import '../shared/safari-11-file-xhr-workaround';

View file

@ -1,3 +1,4 @@
import '../shared/polyfills';
import Turbolinks from 'turbolinks';
import Rails from 'rails-ujs';
import ActiveStorage from '../shared/activestorage/ujs';
@ -5,11 +6,6 @@ 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 '../shared/sentry';
import '../shared/rails-ujs-fix';
import '../shared/safari-11-file-xhr-workaround';

View file

@ -0,0 +1,5 @@
// 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 'dom4';

View file

@ -6,6 +6,7 @@
"autocomplete.js": "^0.31.0",
"chartkick": "^2.3.6",
"debounce": "^1.2.0",
"dom4": "^2.1.3",
"highcharts": "^6.1.1",
"jquery": "^3.3.1",
"leaflet": "^1.3.1",

View file

@ -2319,6 +2319,10 @@ doctrine@^2.1.0:
dependencies:
esutils "^2.0.2"
dom4@^2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/dom4/-/dom4-2.1.3.tgz#f71808fe1f141e4da4ebc43ad5ddb3dd521f2767"
domain-browser@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"