File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class Editor extends Component {
20
20
width : 0 ,
21
21
isReady : false
22
22
} ;
23
+ this . editorContainerRef = React . createRef ( ) ;
23
24
}
24
25
25
26
@@ -70,13 +71,14 @@ class Editor extends Component {
70
71
< div style = { {
71
72
height : "100%" ,
72
73
width : "100%"
73
- } } >
74
+ } } ref = { this . editorContainerRef } >
74
75
< ReactResizeDetector
75
76
handleWidth
76
77
handleHeight
77
78
onResize = { this . handleResize }
78
79
refreshMode = "debounce"
79
- refreshRate = { 50 } />
80
+ refreshRate = { 50 }
81
+ targetRef = { this . editorContainerRef } />
80
82
{
81
83
isReady ? < MonacoEditor
82
84
height = { height }
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ export default defineConfig({
13
13
rollupOptions : {
14
14
external : [ "react-monaco-editor" , "react-resize-detector" ] ,
15
15
} ,
16
+ minify : true ,
16
17
} ,
17
18
} ) ;
You can’t perform that action at this time.
0 commit comments