File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -3,38 +3,13 @@ const path = require('path');
3
3
4
4
console . log ( 'Patch react-devtools-core' ) ;
5
5
6
- // backend vender is backward compatibility for RN <= 0.42
7
- // the problem related to https://github.com/facebook/react-devtools/pull/749
8
- // fixed in core v2.3 but have no patch in the backend vender
9
- const rdBackend = path . join (
10
- __dirname ,
11
- '../dist/node_modules/react-devtools-core/vendor/backend-1.0.6.js'
12
- ) ;
13
- shell . sed (
14
- '-i' ,
15
- 'window.requestIdleCallback' ,
16
- 'window.__REQUEST_IDLE_CALLBACK_REPLACED_BY_PATCH__' ,
17
- rdBackend
18
- ) ;
19
- shell . sed (
20
- '-i' ,
21
- 'window.cancelIdleCallback' ,
22
- 'window.__CANCEL_IDLE_CALLBACK_REPLACED_BY_PATCH__' ,
23
- rdBackend
24
- ) ;
25
-
26
6
const rdStandalone = path . join (
27
7
__dirname ,
28
8
'../dist/node_modules/react-devtools-core/build/standalone.js'
29
9
) ;
30
10
// Hide source map of react-devtools-core
31
11
// for optimize chrome devtools
32
- shell . sed (
33
- '-i' ,
34
- '//# sourceMappingURL=standalone.js.map' ,
35
- '' ,
36
- rdStandalone
37
- ) ;
12
+ shell . sed ( '-i' , '//# sourceMappingURL=standalone.js.map' , '' , rdStandalone ) ;
38
13
// Avoid logging from react-devtools-core
39
14
// log: connected, disconnected
40
15
// error: listening error (can be seen directly in the panel)
You can’t perform that action at this time.
0 commit comments