File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ const getWatchFolders = () => {
25
25
26
26
const getBlacklistRE = ( ) => createBlacklist ( [ / .* \/ _ _ f i x t u r e s _ _ \/ .* / ] ) ;
27
27
28
+ const INTERNAL_CALLSITES_REGEX = new RegExp (
29
+ [
30
+ '/Libraries/Renderer/implementations/.+\\.js$' ,
31
+ '/Libraries/BatchedBridge/MessageQueue\\.js$' ,
32
+ ] . join ( '|' ) ,
33
+ ) ;
34
+
28
35
/**
29
36
* Default configuration
30
37
*
@@ -55,6 +62,14 @@ export const getDefaultConfig = (ctx: ConfigT) => {
55
62
server : {
56
63
port : Number ( process . env . RCT_METRO_PORT ) || 8081 ,
57
64
} ,
65
+ symbolicator : {
66
+ customizeFrame : frame => {
67
+ const collapse = Boolean (
68
+ frame . file && INTERNAL_CALLSITES_REGEX . test ( frame . file ) ,
69
+ ) ;
70
+ return { collapse} ;
71
+ } ,
72
+ } ,
58
73
transformer : {
59
74
babelTransformerPath : require . resolve (
60
75
'metro-react-native-babel-transformer' ,
You can’t perform that action at this time.
0 commit comments