Skip to content

Commit

Permalink
Expose extra internals in FB build of react-dom/unstable-new-scheduler (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
acdlite authored Apr 3, 2019
1 parent 3a44cce commit 6d0effa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/react-dom/unstable-new-scheduler.fb.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 6d0effa

Please sign in to comment.