From bb6a87ecfb879ead8d84a473b083fbabf610f759 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Thu, 27 Feb 2020 11:42:09 -0800 Subject: [PATCH] Remove Node shallow builds This is just a forwarding module. We can hardcode it. --- packages/react-test-renderer/npm/shallow.js | 6 +----- scripts/rollup/bundles.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/react-test-renderer/npm/shallow.js b/packages/react-test-renderer/npm/shallow.js index 9a91f99365823..8c558b509a3c6 100644 --- a/packages/react-test-renderer/npm/shallow.js +++ b/packages/react-test-renderer/npm/shallow.js @@ -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'); diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index 8830b4d06715c..41b9e30b43a5f 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -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',