From f46089ffbf0ee252796f06c428ecb69a35df88a1 Mon Sep 17 00:00:00 2001 From: Austin McGee <947888+amcgee@users.noreply.github.com> Date: Thu, 18 Feb 2021 19:55:14 +0100 Subject: [PATCH] fix: namespace code-split moment locale chunks to separate them from app chunks --- adapter/src/utils/useLocale.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapter/src/utils/useLocale.js b/adapter/src/utils/useLocale.js index 6b89aa3c8..f9a0df6cd 100644 --- a/adapter/src/utils/useLocale.js +++ b/adapter/src/utils/useLocale.js @@ -14,7 +14,9 @@ const simplifyLocale = locale => { const setGlobalLocale = locale => { if (locale !== 'en' && locale !== 'en-us') { - import(`moment/locale/${locale}`).catch(() => { + import( + /* webpackChunkName: "moment-locales/[request]" */ `moment/locale/${locale}` + ).catch(() => { /* ignore */ }) }