From 788de7258849fe9bc96523639567cca05fbb8fed Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Wed, 7 Nov 2018 19:07:05 -0800 Subject: [PATCH] Properly include fizz.node.js Also use forwarding to it from fizz.js in builds so that tests covers this. --- packages/react-dom/npm/fizz.js | 6 +----- packages/react-dom/npm/fizz.node.js | 7 +++++++ packages/react-dom/package.json | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 packages/react-dom/npm/fizz.node.js diff --git a/packages/react-dom/npm/fizz.js b/packages/react-dom/npm/fizz.js index 616592945b1a9..232f89cee21e5 100644 --- a/packages/react-dom/npm/fizz.js +++ b/packages/react-dom/npm/fizz.js @@ -1,7 +1,3 @@ 'use strict'; -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/react-dom-fizz.production.min.js'); -} else { - module.exports = require('./cjs/react-dom-fizz.development.js'); -} +module.exports = require('./fizz.node'); diff --git a/packages/react-dom/npm/fizz.node.js b/packages/react-dom/npm/fizz.node.js new file mode 100644 index 0000000000000..616592945b1a9 --- /dev/null +++ b/packages/react-dom/npm/fizz.node.js @@ -0,0 +1,7 @@ +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react-dom-fizz.production.min.js'); +} else { + module.exports = require('./cjs/react-dom-fizz.development.js'); +} diff --git a/packages/react-dom/package.json b/packages/react-dom/package.json index e2409727d4d00..141565ea3f259 100644 --- a/packages/react-dom/package.json +++ b/packages/react-dom/package.json @@ -30,6 +30,7 @@ "server.browser.js", "server.node.js", "fizz.js", + "fizz.node.js", "test-utils.js", "unstable-native-dependencies.js", "cjs/",