Fix Webpack magic comments for Windows

pull/413/head
MattIPv4 2022-12-15 20:15:23 +00:00
parent 895d448bcf
commit a0a4d14edc
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export const getI18n = async () => {
if (availablePack === defaultPack) continue;
if (i18nPacks[availablePack]) continue;
const { default: languageData } = await import(
/* webpackInclude: /i18n\/[^/]+\/languages\.js$/ */
/* webpackInclude: /i18n[\/\\][^\/\\]+[\/\\]languages\.js$/ */
/* webpackMode: "eager" */
`./${toSep(availablePack, '-')}/languages.js`
);
@ -72,7 +72,7 @@ const loadLanguagePack = async pack => {
// Load in the full pack
// Use webpack magic to only build chunks for lang/index.js
const { default: packData } = await import(
/* webpackInclude: /i18n\/[^/]+\/index\.js$/ */
/* webpackInclude: /i18n[\/\\][^\/\\]+[\/\\]index\.js$/ */
/* webpackMode: "lazy" */
`./${toSep(pack, '-')}/index.js`
);