From 3f690d344becde48e4f42e97903876aa40add4ac Mon Sep 17 00:00:00 2001 From: Luna Ruan Date: Mon, 2 Mar 2020 16:52:36 -0800 Subject: [PATCH] put react JSX behind __EXPERIMENTAL__ --- packages/shared/ReactFeatureFlags.js | 2 +- packages/shared/forks/ReactFeatureFlags.native-fb.js | 2 +- packages/shared/forks/ReactFeatureFlags.native-oss.js | 2 +- packages/shared/forks/ReactFeatureFlags.persistent.js | 2 +- packages/shared/forks/ReactFeatureFlags.test-renderer.js | 2 +- packages/shared/forks/ReactFeatureFlags.testing.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/shared/ReactFeatureFlags.js b/packages/shared/ReactFeatureFlags.js index c73997f1dcef9..34eabf28e9ec8 100644 --- a/packages/shared/ReactFeatureFlags.js +++ b/packages/shared/ReactFeatureFlags.js @@ -60,7 +60,7 @@ export const enableFundamentalAPI = false; export const enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107 -export const enableJSXTransformAPI = false; +export const enableJSXTransformAPI = __EXPERIMENTAL__; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?) // Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version diff --git a/packages/shared/forks/ReactFeatureFlags.native-fb.js b/packages/shared/forks/ReactFeatureFlags.native-fb.js index c930e0ecc9be9..6f071952b0106 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-fb.js +++ b/packages/shared/forks/ReactFeatureFlags.native-fb.js @@ -35,7 +35,7 @@ export const warnAboutDeprecatedLifecycles = true; export const enableDeprecatedFlareAPI = false; export const enableFundamentalAPI = false; export const enableScopeAPI = false; -export const enableJSXTransformAPI = false; +export const enableJSXTransformAPI = __EXPERIMENTAL__; export const warnAboutUnmockedScheduler = true; export const flushSuspenseFallbacksInTests = true; export const enableSuspenseCallback = false; diff --git a/packages/shared/forks/ReactFeatureFlags.native-oss.js b/packages/shared/forks/ReactFeatureFlags.native-oss.js index ee795fe1e03f0..07366398c851d 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-oss.js +++ b/packages/shared/forks/ReactFeatureFlags.native-oss.js @@ -29,7 +29,7 @@ export const enableSchedulerDebugging = false; export const enableDeprecatedFlareAPI = false; export const enableFundamentalAPI = false; export const enableScopeAPI = false; -export const enableJSXTransformAPI = false; +export const enableJSXTransformAPI = __EXPERIMENTAL__; export const warnAboutUnmockedScheduler = false; export const flushSuspenseFallbacksInTests = true; export const enableSuspenseCallback = false; diff --git a/packages/shared/forks/ReactFeatureFlags.persistent.js b/packages/shared/forks/ReactFeatureFlags.persistent.js index db307747c1b62..ca0584f0f6b16 100644 --- a/packages/shared/forks/ReactFeatureFlags.persistent.js +++ b/packages/shared/forks/ReactFeatureFlags.persistent.js @@ -29,7 +29,7 @@ export const enableSchedulerDebugging = false; export const enableDeprecatedFlareAPI = false; export const enableFundamentalAPI = false; export const enableScopeAPI = false; -export const enableJSXTransformAPI = false; +export const enableJSXTransformAPI = __EXPERIMENTAL__; export const warnAboutUnmockedScheduler = true; export const flushSuspenseFallbacksInTests = true; export const enableSuspenseCallback = false; diff --git a/packages/shared/forks/ReactFeatureFlags.test-renderer.js b/packages/shared/forks/ReactFeatureFlags.test-renderer.js index 5d8263c720890..d30dd6aaf2138 100644 --- a/packages/shared/forks/ReactFeatureFlags.test-renderer.js +++ b/packages/shared/forks/ReactFeatureFlags.test-renderer.js @@ -29,7 +29,7 @@ export const enableSchedulerDebugging = false; export const enableDeprecatedFlareAPI = false; export const enableFundamentalAPI = false; export const enableScopeAPI = false; -export const enableJSXTransformAPI = false; +export const enableJSXTransformAPI = __EXPERIMENTAL__; export const warnAboutUnmockedScheduler = false; export const flushSuspenseFallbacksInTests = true; export const enableSuspenseCallback = false; diff --git a/packages/shared/forks/ReactFeatureFlags.testing.js b/packages/shared/forks/ReactFeatureFlags.testing.js index 13fcc7e198011..cefb44b07638b 100644 --- a/packages/shared/forks/ReactFeatureFlags.testing.js +++ b/packages/shared/forks/ReactFeatureFlags.testing.js @@ -29,7 +29,7 @@ export const enableSchedulerDebugging = false; export const enableDeprecatedFlareAPI = false; export const enableFundamentalAPI = false; export const enableScopeAPI = false; -export const enableJSXTransformAPI = false; +export const enableJSXTransformAPI = __EXPERIMENTAL__; export const warnAboutUnmockedScheduler = false; export const flushSuspenseFallbacksInTests = true; export const enableSuspenseCallback = false;