Skip to content

Commit

Permalink
Remove Node shallow builds (#18157)
Browse files Browse the repository at this point in the history
This is just a forwarding module. We can hardcode it.
  • Loading branch information
sebmarkbage authored Feb 27, 2020
1 parent 3e809bf commit 739f20b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/react-test-renderer/npm/shallow.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-test-renderer-shallow.production.min.js');
} else {
module.exports = require('./cjs/react-test-renderer-shallow.development.js');
}
module.exports = require('react-shallow-renderer');
2 changes: 1 addition & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const bundles = [
}),
},
{
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
bundleTypes: [UMD_DEV, UMD_PROD],
moduleType: NON_FIBER_RENDERER,
entry: 'react-test-renderer/shallow',
global: 'ReactShallowRenderer',
Expand Down

0 comments on commit 739f20b

Please sign in to comment.