[compiler] Don't leak global __DEV__ type (#34551)

This commit is contained in:
Sebastian "Sebbie" Silbermann 2025-09-22 16:51:57 +02:00 committed by GitHub
parent d91d28c8ba
commit 07e4974bad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export {
} from './ReactiveScopes'; } from './ReactiveScopes';
export {parseConfigPragmaForTests} from './Utils/TestUtils'; export {parseConfigPragmaForTests} from './Utils/TestUtils';
declare global { declare global {
// @internal
let __DEV__: boolean | null | undefined; let __DEV__: boolean | null | undefined;
} }

View File

@ -10,6 +10,7 @@
"importsNotUsedAsValues": "remove", "importsNotUsedAsValues": "remove",
"noUncheckedIndexedAccess": false, "noUncheckedIndexedAccess": false,
"noUnusedParameters": false, "noUnusedParameters": false,
"stripInternal": true,
"useUnknownInCatchVariables": true, "useUnknownInCatchVariables": true,
"target": "ES2015", "target": "ES2015",
// ideally turn off only during dev, or on a per-file basis // ideally turn off only during dev, or on a per-file basis