Skip to content

Commit 07e4974

Browse files
authored
[compiler] Don't leak global __DEV__ type (#34551)
1 parent d91d28c commit 07e4974

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/packages/babel-plugin-react-compiler/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export {
5151
} from './ReactiveScopes';
5252
export {parseConfigPragmaForTests} from './Utils/TestUtils';
5353
declare global {
54+
// @internal
5455
let __DEV__: boolean | null | undefined;
5556
}
5657

compiler/packages/babel-plugin-react-compiler/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"importsNotUsedAsValues": "remove",
1111
"noUncheckedIndexedAccess": false,
1212
"noUnusedParameters": false,
13+
"stripInternal": true,
1314
"useUnknownInCatchVariables": true,
1415
"target": "ES2015",
1516
// ideally turn off only during dev, or on a per-file basis

0 commit comments

Comments
 (0)