From 6d0effad76f236a248955aefbfdc2187043fcb5e Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Wed, 3 Apr 2019 12:20:42 -0700 Subject: [PATCH] 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. --- packages/react-dom/unstable-new-scheduler.fb.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/react-dom/unstable-new-scheduler.fb.js diff --git a/packages/react-dom/unstable-new-scheduler.fb.js b/packages/react-dom/unstable-new-scheduler.fb.js new file mode 100644 index 0000000000000..ea901748d6949 --- /dev/null +++ b/packages/react-dom/unstable-new-scheduler.fb.js @@ -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;