File tree 5 files changed +2
-7
lines changed
5 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -521,7 +521,6 @@ module.exports = {
521
521
spyOnProd : 'readonly' ,
522
522
__DEV__ : 'readonly' ,
523
523
__EXPERIMENTAL__ : 'readonly' ,
524
- __NEXT_MAJOR__ : 'readonly' ,
525
524
__EXTENSION__ : 'readonly' ,
526
525
__PROFILE__ : 'readonly' ,
527
526
__TEST__ : 'readonly' ,
Original file line number Diff line number Diff line change @@ -138,7 +138,9 @@ export const transitionLaneExpirationMs = 5000;
138
138
// Ready for next major.
139
139
//
140
140
// __NEXT_MAJOR__ is an alias for __EXPERIMENTAL__.
141
+ // The global injects a value from the feature flag script to diff flags.
141
142
// -----------------------------------------------------------------------------
143
+ const __NEXT_MAJOR__ = global . __NEXT_MAJOR__ || __EXPERIMENTAL__ ;
142
144
143
145
// Not ready to break experimental yet.
144
146
export const disableLegacyContext = false ;
Original file line number Diff line number Diff line change 12
12
declare var __PROFILE__: boolean ;
13
13
declare var __UMD__: boolean ;
14
14
declare var __EXPERIMENTAL__: boolean ;
15
- declare var __NEXT_MAJOR__: boolean ;
16
15
declare var __VARIANT__: boolean ;
17
16
18
17
declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any ; /*?{
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ global.__EXPERIMENTAL__ =
19
19
? RELEASE_CHANNEL === 'experimental'
20
20
: true ;
21
21
22
- global . __NEXT_MAJOR__ = __EXPERIMENTAL__ ;
23
-
24
22
global . __VARIANT__ = ! ! process . env . VARIANT ;
25
23
26
24
if ( typeof window !== 'undefined' ) {
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ const __EXPERIMENTAL__ =
34
34
? RELEASE_CHANNEL === 'experimental'
35
35
: true ;
36
36
37
- const __NEXT_MAJOR__ = __EXPERIMENTAL__ ;
38
-
39
37
// Errors in promises should be fatal.
40
38
let loggedErrors = new Set ( ) ;
41
39
process . on ( 'unhandledRejection' , err => {
@@ -470,7 +468,6 @@ function getPlugins(
470
468
? "'production'"
471
469
: "'development'" ,
472
470
__EXPERIMENTAL__ ,
473
- __NEXT_MAJOR__ ,
474
471
} ,
475
472
} ) ,
476
473
// The CommonJS plugin *only* exists to pull "art" into "react-art".
You can’t perform that action at this time.
0 commit comments