Skip to content

Commit

Permalink
Add production bundles for Test and Shallow renderers (#11112)
Browse files Browse the repository at this point in the history
* Add production bundles for Test and Shallow renderers

* Remove unused/broken file from test renderer

* Add production bundle for TestUtils
  • Loading branch information
gaearon authored Oct 5, 2017
1 parent 9ed7069 commit f5919fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

if (process.env.NODE_ENV === 'production') {
throw Error('test renderer is not available in production mode.');
module.exports = require('./cjs/react-test-renderer.production.min.js');
} else {
module.exports = require('./cjs/react-test-renderer.development');
module.exports = require('./cjs/react-test-renderer.development.js');
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"README.md",
"index.js",
"shallow.js",
"stack.js",
"cjs/"
]
}
4 changes: 2 additions & 2 deletions shallow.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

if (process.env.NODE_ENV === 'production') {
throw Error('shallow renderer is not available in production mode.');
module.exports = require('./cjs/react-test-renderer-shallow.production.min.js');
} else {
module.exports = require('./cjs/react-test-renderer-shallow.development');
module.exports = require('./cjs/react-test-renderer-shallow.development.js');
}
7 changes: 0 additions & 7 deletions stack.js

This file was deleted.

0 comments on commit f5919fe

Please sign in to comment.