Skip to content

Commit

Permalink
Add more internal callsites for better stack frames (#1699)
Browse files Browse the repository at this point in the history
* Add more internal callsites

* fix lint

* Add invariant and react-native/index.js
  • Loading branch information
rickhanlonii committed Sep 9, 2022
1 parent b89e81b commit 58ca7f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli-plugin-metro/src/tools/loadMetroConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ const INTERNAL_CALLSITES_REGEX = new RegExp(
'/Libraries/YellowBox/.+\\.js$',
'/Libraries/LogBox/.+\\.js$',
'/Libraries/Core/Timers/.+\\.js$',
'/Libraries/WebSocket/.+\\.js$',
'/Libraries/vendor/.+\\.js$',
'/node_modules/react-devtools-core/.+\\.js$',
'/node_modules/react-refresh/.+\\.js$',
'/node_modules/scheduler/.+\\.js$',
'/node_modules/event-target-shim/.+\\.js$',
'/node_modules/invariant/.+\\.js$',
'/node_modules/react-native/index.js$',
'/metro-runtime/.+\\.js$',
'^\\[native code\\]$',
].join('|'),
);

Expand Down

0 comments on commit 58ca7f1

Please sign in to comment.