mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +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';
|
} 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user