Skip to content

Commit 6d0effa

Browse files
authored
Expose extra internals in FB build of react-dom/unstable-new-scheduler (#15311)
The Facebook build of React DOM uses a forked entry point that exposes additional secret internals. I didn't account for this when I added the react-dom/unstable-new-scheduler build, so the extra internals are currently missing. This commit adds them.
1 parent 3a44cce commit 6d0effa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict';
9+
10+
const ReactDOMFB = require('./src/client/ReactDOMFB');
11+
12+
// TODO: decide on the top-level export form.
13+
// This is hacky but makes it work with both Rollup and Jest.
14+
module.exports = ReactDOMFB.default || ReactDOMFB;

0 commit comments

Comments
 (0)