Skip to content

Commit

Permalink
Remove shallow builds completely
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 committed Feb 27, 2020
1 parent 3e809bf commit 87d4b83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 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');
13 changes: 0 additions & 13 deletions scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,19 +294,6 @@ const bundles = [
]),
}),
},
{
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
moduleType: NON_FIBER_RENDERER,
entry: 'react-test-renderer/shallow',
global: 'ReactShallowRenderer',
externals: ['react', 'scheduler', 'scheduler/unstable_mock'],
babel: opts =>
Object.assign({}, opts, {
plugins: opts.plugins.concat([
[require.resolve('@babel/plugin-transform-classes'), {loose: true}],
]),
}),
},

/******* React Noop Renderer (used for tests) *******/
{
Expand Down

0 comments on commit 87d4b83

Please sign in to comment.