Skip to content

Commit 12aa92c

Browse files
committed
Just inline it
1 parent 2669eef commit 12aa92c

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ module.exports = {
521521
spyOnProd: 'readonly',
522522
__DEV__: 'readonly',
523523
__EXPERIMENTAL__: 'readonly',
524-
__NEXT_MAJOR__: 'readonly',
525524
__EXTENSION__: 'readonly',
526525
__PROFILE__: 'readonly',
527526
__TEST__: 'readonly',

packages/shared/ReactFeatureFlags.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ export const transitionLaneExpirationMs = 5000;
137137
// -----------------------------------------------------------------------------
138138
// Ready for next major.
139139
//
140-
// __NEXT_MAJOR__ is an alias for __EXPERIMENTAL__.
140+
// Alias __NEXT_MAJOR__ to __EXPERIMENTAL__ for easier skimming.
141141
// -----------------------------------------------------------------------------
142+
const __NEXT_MAJOR__ = __EXPERIMENTAL__;
142143

143144
// Not ready to break experimental yet.
144145
export const disableLegacyContext = false;

scripts/flow/environment.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
declare var __PROFILE__: boolean;
1313
declare var __UMD__: boolean;
1414
declare var __EXPERIMENTAL__: boolean;
15-
declare var __NEXT_MAJOR__: boolean;
1615
declare var __VARIANT__: boolean;
1716

1817
declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{

scripts/jest/setupEnvironment.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ global.__EXPERIMENTAL__ =
1919
? RELEASE_CHANNEL === 'experimental'
2020
: true;
2121

22-
global.__NEXT_MAJOR__ = __EXPERIMENTAL__;
23-
2422
global.__VARIANT__ = !!process.env.VARIANT;
2523

2624
if (typeof window !== 'undefined') {

scripts/rollup/build.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ const __EXPERIMENTAL__ =
3434
? RELEASE_CHANNEL === 'experimental'
3535
: true;
3636

37-
const __NEXT_MAJOR__ = __EXPERIMENTAL__;
38-
3937
// Errors in promises should be fatal.
4038
let loggedErrors = new Set();
4139
process.on('unhandledRejection', err => {
@@ -470,7 +468,6 @@ function getPlugins(
470468
? "'production'"
471469
: "'development'",
472470
__EXPERIMENTAL__,
473-
__NEXT_MAJOR__,
474471
},
475472
}),
476473
// The CommonJS plugin *only* exists to pull "art" into "react-art".

0 commit comments

Comments
 (0)