Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Mute regenerator runtime and setimmediate stack traces (#3294)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon authored Mar 17, 2021
1 parent 2986364 commit a1ee48c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/metro-config/src/ExpoMetroConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export const INTERNAL_CALLSITES_REGEX = new RegExp(
'/expo/build/logs/RemoteConsole.js$',
// Improve errors thrown by invariant (ex: `Invariant Violation: "main" has not been registered`).
'node_modules/invariant/.+\\.js$',
// Remove babel runtime additions
'node_modules/regenerator-runtime/.+\\.js$',
// Remove react native setImmediate ponyfill
'node_modules/promise/setimmediate/.+\\.js$',
].join('|')
);

Expand Down

0 comments on commit a1ee48c

Please sign in to comment.