Skip to content

Commit

Permalink
Prefix react-dom/fizz with react-dom/unstable-fizz
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Nov 8, 2018
1 parent 6d94011 commit a0fa6e0
Show file tree
Hide file tree
Showing 11 changed files with 137 additions and 137 deletions.
3 changes: 0 additions & 3 deletions packages/react-dom/npm/fizz.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-dom/npm/fizz.node.js

This file was deleted.

3 changes: 3 additions & 0 deletions packages/react-dom/npm/unstable-fizz.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('./unstable-fizz.node');
7 changes: 7 additions & 0 deletions packages/react-dom/npm/unstable-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-unstable-fizz.production.min.js');
} else {
module.exports = require('./cjs/react-dom-unstable-fizz.development.js');
}
4 changes: 2 additions & 2 deletions packages/react-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"server.js",
"server.browser.js",
"server.node.js",
"fizz.js",
"fizz.node.js",
"unstable-fizz.js",
"unstable-fizz.node.js",
"test-utils.js",
"unstable-native-dependencies.js",
"cjs/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('ReactDOMFizzServer', () => {
beforeEach(() => {
jest.resetModules();
React = require('react');
ReactDOMFizzServer = require('react-dom/fizz');
ReactDOMFizzServer = require('react-dom/unstable-fizz');
Stream = require('stream');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

'use strict';

module.exports = require('./fizz.node');
module.exports = require('./unstable-fizz.node');
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const bundles = [
{
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
moduleType: RENDERER,
entry: 'react-dom/fizz',
entry: 'react-dom/unstable-fizz',
global: 'ReactDOMFizzServer',
externals: ['react'],
},
Expand Down
Loading

0 comments on commit a0fa6e0

Please sign in to comment.