Add required polyfills so react-dates works in Internet Explorer 11 (https://github.com/woocommerce/woocommerce-admin/pull/356)

react-dates developers recommend using airbnb-browser-shims, but doing some
testing I found loading the required polyfills individually instead of the
entire Airbnb Browser Shims package produces smaller builds.
This commit is contained in:
Albert Juhé Lluveras 2018-09-11 09:28:50 +02:00 committed by GitHub
parent 8932f99038
commit ae8739d63f
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@
*/
import { Component } from '@wordpress/element';
import moment from 'moment';
import 'core-js/fn/object/assign';
import 'core-js/fn/array/from';
import {
DayPickerRangeController,
isInclusivelyAfterDay,