-
Notifications
You must be signed in to change notification settings - Fork 47.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add production bundles for Test and Shallow renderers (#11112)
* Add production bundles for Test and Shallow renderers * Remove unused/broken file from test renderer * Add production bundle for TestUtils
- Loading branch information
Showing
7 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-utils is not available in production mode.'); | ||
module.exports = require('./cjs/react-dom-test-utils.production.min.js'); | ||
} else { | ||
module.exports = require('./cjs/react-dom-test-utils.development'); | ||
module.exports = require('./cjs/react-dom-test-utils.development.js'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ | |
"README.md", | ||
"index.js", | ||
"shallow.js", | ||
"stack.js", | ||
"cjs/" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters