@samitouri / QOS-React-2 / commits / 6099351c76

Use internal `ReactCompilerRuntime` in `react/compiler-runtime` entrypoint (#32054)

Sebastian "Sebbie" Silbermann committed Jan 13, 2025 at 19:42 UTC 6099351c768670246e8b47e702545d03ddc97320
3 files changed +3 -7
packages/react/compiler-runtime.js
+1 -1
@@ -7,4 +7,4 @@
7 * @flow
8 */
9
10 -export {useMemoCache as c} from './src/ReactHooks';
10 +export * from './src/ReactCompilerRuntime';
packages/react/src/ReactClient.js
+1 -1
@@ -63,7 +63,7 @@ import ReactSharedInternals from './ReactSharedInternalsClient';
63 import {startTransition} from './ReactStartTransition';
64 import {act} from './ReactAct';
65 import {captureOwnerStack} from './ReactOwnerStack';
66 -import ReactCompilerRuntime from './ReactCompilerRuntime';
66 +import * as ReactCompilerRuntime from './ReactCompilerRuntime';
67 import {enableUseResourceEffectHook} from 'shared/ReactFeatureFlags';
68
69 const Children = {
packages/react/src/ReactCompilerRuntime.js
+1 -5
@@ -7,8 +7,4 @@
7 * @flow
8 */
9
10 -import {useMemoCache} from './ReactHooks';
11 -
12 -export default {
13 - c: useMemoCache,
14 -};
10 +export {useMemoCache as c} from './ReactHooks';