File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,13 @@ async function load(source) {
75
75
let previousDocument = global . document ;
76
76
let previousElement = global . Element ;
77
77
// https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/176#issuecomment-683150213
78
- global . $RefreshReg$ = noop ;
79
- global . $RefreshSig$ = ( ) => noop ;
78
+ global . $RefreshReg$ = previousRefreshReg || noop ;
79
+ global . $RefreshSig$ = previousRefreshSig || ( ( ) => noop ) ;
80
80
global . document = previousDocument || {
81
81
querySelector : noop ,
82
82
querySelectorAll : noop ,
83
83
} ;
84
- global . Element = class Element { } ;
84
+ global . Element = previousElement || class Element { } ;
85
85
86
86
// This imports the config as an in-memory object
87
87
const importAtBuildTime = async ( resource ) => {
You can’t perform that action at this time.
0 commit comments