Skip to content

Commit

Permalink
Properly include fizz.node.js
Browse files Browse the repository at this point in the history
Also use forwarding to it from fizz.js in builds so that tests covers
this.
  • Loading branch information
sebmarkbage committed Nov 8, 2018
1 parent b7a144b commit 788de72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 1 addition & 5 deletions packages/react-dom/npm/fizz.js
Original file line number Diff line number Diff line change
@@ -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');
7 changes: 7 additions & 0 deletions packages/react-dom/npm/fizz.node.js
Original file line number Diff line number Diff line change
@@ -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');
}
1 change: 1 addition & 0 deletions packages/react-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"server.browser.js",
"server.node.js",
"fizz.js",
"fizz.node.js",
"test-utils.js",
"unstable-native-dependencies.js",
"cjs/",
Expand Down

0 comments on commit 788de72

Please sign in to comment.