From ad491a370c45365b7a5e585ddccb23a0d95ea202 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 6 Jan 2026 22:56:00 +0100 Subject: [PATCH] fix plugins using intl messages --- src/webpack/common/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index 95bb5f267..ed04bf958 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -55,7 +55,7 @@ export const { match, P }: { match: typeof TSPattern["match"], P: typeof TSPatte export const lodash: typeof import("lodash") = findByPropsLazy("debounce", "cloneDeep"); -export const i18n = mapMangledModuleLazy('defaultLocale:"en-US"', { +export const i18n = mapMangledModuleLazy(['defaultLocale:"en-US"', /initialLocale:\i/], { t: m => m?.[Symbol.toStringTag] === "IntlMessagesProxy", intl: m => m != null && Object.getPrototypeOf(m)?.withFormatters != null }, true);