@samitouri / QOS-React / commits / 739f20beda

Remove Node shallow builds (#18157)

This is just a forwarding module. We can hardcode it.

Sebastian Markbåge committed Feb 27, 2020 at 14:11 UTC 739f20beda56a28a9212e3478571c866babee118
2 files changed +2 -6
packages/react-test-renderer/npm/shallow.js
+1 -5
@@ -1,7 +1,3 @@
1 'use strict';
2
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
+1 -1
@@ -295,7 +295,7 @@ const bundles = [
295 }),
296 },
297 {
298 - bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
298 + bundleTypes: [UMD_DEV, UMD_PROD],
299 moduleType: NON_FIBER_RENDERER,
300 entry: 'react-test-renderer/shallow',
301 global: 'ReactShallowRenderer',