From 76301eb9763b04c0edb7233765974a705ea0a150 Mon Sep 17 00:00:00 2001 From: weaseldotro <1822852+weaseldotro@users.noreply.github.com> Date: Wed, 7 Oct 2020 16:05:15 +0300 Subject: [PATCH] remove i10n locales from DatePicker This saves 41972 bytes from the total build bundle size. Locales can be optionally added by importing in the app the specific locale (or all of them), according to the flatpickr documentation: https://flatpickr.js.org/localization/ --- src/DatePicker/createCalendar.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/DatePicker/createCalendar.js b/src/DatePicker/createCalendar.js index 16273183..3ad85e91 100644 --- a/src/DatePicker/createCalendar.js +++ b/src/DatePicker/createCalendar.js @@ -1,5 +1,4 @@ import flatpickr from "flatpickr"; -import l10n from "flatpickr/dist/l10n/index.js"; import rangePlugin from "flatpickr/dist/plugins/rangePlugin"; function updateClasses(instance) {