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.
This commit is contained in:
Andrew Clark
2019-04-03 12:20:42 -07:00
committed by GitHub
parent 3a44ccefed
commit 6d0effad76
@@ -0,0 +1,14 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const ReactDOMFB = require('./src/client/ReactDOMFB');
// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest.
module.exports = ReactDOMFB.default || ReactDOMFB;