We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd9f234 commit d53559aCopy full SHA for d53559a
packages/react-error-overlay/src/components/frame.js
@@ -142,7 +142,10 @@ function createFrame(
142
// Chrome has a bug with inferring function.name:
143
// https://github.com/facebookincubator/create-react-app/issues/2097
144
// Let's ignore a meaningless name we get for top-level modules.
145
- if (functionName === 'Object.friendlySyntaxErrorLabel') {
+ if (
146
+ functionName === 'Object.friendlySyntaxErrorLabel' ||
147
+ functionName === 'Object.exports.__esModule'
148
+ ) {
149
functionName = '(anonymous function)';
150
}
151
0 commit comments