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.
Andrew Clark committed
Apr 3, 2019 at 12:20 UTC
6d0effad76f236a248955aefbfdc2187043fcb5e
1 file changed
+14
packages/react-dom/unstable-new-scheduler.fb.js
new
+14
@@ -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;