From c0ffb13f86e1cae83ebf8973fae736924b18e279 Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Tue, 29 Sep 2026 06:37:32 +0000 Subject: [PATCH] check:no-free-identifiers counts __DX_LOCALE_SRI__ as build-bound: the locale plugin prepends it, and its one read is typeof-guarded --- .../scripts/check-no-free-identifiers.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs b/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs index e546b6834..f660282c2 100644 --- a/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs +++ b/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs @@ -75,6 +75,10 @@ const GLOBALS = [ // Build-time defines: vite REPLACES these before the browser ever sees them (vite.config.js // `define`), so they are bound by the bundler rather than by the file. '__DOXA_TREE_NAME__', '__DOXA_QA__', + // Bound by the build too, but by a transform rather than `define`: with DX_SHIP_ONE_LOCALE the + // i18nAreasPlugin prepends `const __DX_LOCALE_SRI__ = {…}` to library/i18n/index.js; without it the + // name does not exist, which is why its one read sits behind `typeof … !== 'undefined'`. + '__DX_LOCALE_SRI__', ] const PRELUDE = new Set([...VUE_MACROS, ...GLOBALS])