Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing header comment.
  • Loading branch information
andrewmcgivery committed Oct 26, 2020
commit 2c86ab32d7d8ab0071561072ecba816f8b1b2400
4 changes: 2 additions & 2 deletions scripts/mangleErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const evalToString = ast => {
* throw new Error(1);
*
* After: (without minify):
* throw new Error(node.process.env === 'production' ? 0 : "This is my error message.");
* throw new Error(node.process.env === 'production' ? 1 : "This is a second error message.");
* throw new Error(node.process.NODE_ENV === 'production' ? 0 : "This is my error message.");
* throw new Error(node.process.NODE_ENV === 'production' ? 1 : "This is a second error message.");
*/
module.exports = babel => {
const t = babel.types
Expand Down