We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0af70c2 commit b53f903Copy full SHA for b53f903
packages/react-dev-utils/formatBuildError.js
@@ -21,7 +21,7 @@ module.exports = function formatBuildError(err) {
21
console.log(
22
'Failed to minify the code from \n\n',
23
chalk.yellow(
24
- err.stack.split('\n')[1].split('[')[1].split('][')[0].replace(']', '')
+ /Unexpected token:(.+)\[(.+)\]\[(.+)\]/.exec(err.stack)[2]
25
),
26
'\n'
27
);
0 commit comments