From 5d39f2308330456504f917c2edc79ac073aac60f Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 27 Oct 2022 01:13:29 -0400 Subject: [PATCH] Fix chunk names --- src/components/appRouter.js | 2 +- src/scripts/globalize.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 1c67ab976f..997e99591a 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -262,7 +262,7 @@ class AppRouter { }; if (route.controller) { - import('../controllers/' + route.controller).then(onInitComplete); + import(/* webpackChunkName: "[request]" */ '../controllers/' + route.controller).then(onInitComplete); } else { onInitComplete(); } diff --git a/src/scripts/globalize.js b/src/scripts/globalize.js index 81c727c4ff..0cc5523438 100644 --- a/src/scripts/globalize.js +++ b/src/scripts/globalize.js @@ -192,7 +192,7 @@ const Direction = { const url = filtered[0].path; - import(`../strings/${url}`).then((fileContent) => { + import(/* webpackChunkName: "[request]" */ `../strings/${url}`).then((fileContent) => { resolve(fileContent); }).catch(() => { resolve({});