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])