Skip to content

Commit b2b350a

Browse files
committed
Exclude Babel Runtime error from our own output
1 parent 90bd92e commit b2b350a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/mangleErrors.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ module.exports = babel => {
8989

9090
const errorMsgLiteral = evalToString(path.node.argument.arguments[0])
9191

92+
if (errorMsgLiteral.includes('Super expression')) {
93+
// ignore Babel runtime error message
94+
return
95+
}
96+
9297
// Attempt to get the existing index of the error. If it is not found, add it to the array as a new error.
9398
let errorIndex = errors.indexOf(errorMsgLiteral)
9499
if (errorIndex === -1) {

0 commit comments

Comments
 (0)