demarches-normaliennes/app/javascript/shared/polyfills.js

12 lines
384 B
JavaScript
Raw Normal View History

// Include runtime-polyfills for older browsers.
// Due to babel.config.js's 'useBuiltIns', only polyfills actually
// required by the browsers we support will be included.
2018-11-08 15:43:06 +01:00
import '@babel/polyfill';
import 'dom4';
import './polyfills/insertAdjacentElement';
import './polyfills/dataset';
2019-04-24 13:17:05 +02:00
if (typeof window.IntersectionObserver === 'undefined') {
import('intersection-observer');
}