// This file is based on https://github.com/facebook/create-react-app/blob/7b1a32be6ec9f99a6c9a3c66813f3ac09c4736b9/packages/react-dev-utils/formatWebpackMessages.js
// It's been edited to remove chalk and CRA-specific logic
constfriendlySyntaxErrorLabel='Syntax error:'
constWEBPACK_BREAKING_CHANGE_POLYFILLS=
'\n\nBREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.'
message=message.replace(/^\s*at\s<anonymous>(\n|$)/gm,'')// at <anonymous>
message=message.replace(
/File was processed with these loaders:\n(.+[\\/](next[\\/]dist[\\/].+|@next[\\/]react-refresh-utils[\\/]loader)\.js\n)*You may need an additional loader to handle the result of these loaders.\n/g,