Skip to content

Commit b3494b1

Browse files
authored
Added stack renderer to react-test-renderer bundle temporarily (#9514)
Also fixed an error in a temporary export property that had been added to the React object
1 parent d79ce51 commit b3494b1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"README.md",
2828
"index.js",
2929
"shallow.js",
30+
"stack.js",
3031
"cjs/"
3132
]
3233
}

stack.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
if (process.env.NODE_ENV === 'production') {
4+
throw Error('test renderer is not available in production mode.');
5+
} else {
6+
module.exports = require('./cjs/react-test-renderer-stack.development');
7+
}

0 commit comments

Comments
 (0)