Skip to content

Commit 739f20b

Browse files
authored
Remove Node shallow builds (#18157)
This is just a forwarding module. We can hardcode it.
1 parent 3e809bf commit 739f20b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
'use strict';
22

3-
if (process.env.NODE_ENV === 'production') {
4-
module.exports = require('./cjs/react-test-renderer-shallow.production.min.js');
5-
} else {
6-
module.exports = require('./cjs/react-test-renderer-shallow.development.js');
7-
}
3+
module.exports = require('react-shallow-renderer');

scripts/rollup/bundles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const bundles = [
295295
}),
296296
},
297297
{
298-
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
298+
bundleTypes: [UMD_DEV, UMD_PROD],
299299
moduleType: NON_FIBER_RENDERER,
300300
entry: 'react-test-renderer/shallow',
301301
global: 'ReactShallowRenderer',

0 commit comments

Comments
 (0)