mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
[compiler] Don't leak global __DEV__ type (#34551)
This commit is contained in:
parent
d91d28c8ba
commit
07e4974bad
|
|
@ -51,6 +51,7 @@ export {
|
|||
} from './ReactiveScopes';
|
||||
export {parseConfigPragmaForTests} from './Utils/TestUtils';
|
||||
declare global {
|
||||
// @internal
|
||||
let __DEV__: boolean | null | undefined;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
"importsNotUsedAsValues": "remove",
|
||||
"noUncheckedIndexedAccess": false,
|
||||
"noUnusedParameters": false,
|
||||
"stripInternal": true,
|
||||
"useUnknownInCatchVariables": true,
|
||||
"target": "ES2015",
|
||||
// ideally turn off only during dev, or on a per-file basis
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user