Don't import __FastRefreshRuntime if it's a CJS transform

This commit is contained in:
Jarred Sumner
2022-02-07 23:32:48 -08:00
parent 71fcb7b86c
commit 1430cb5e34

View File

@@ -2169,6 +2169,7 @@ pub const Parser = struct {
p.options.features.react_fast_refresh = false;
p.runtime_imports.__HMRModule = null;
p.runtime_imports.__FastRefreshModule = null;
p.runtime_imports.__FastRefreshRuntime = null;
p.runtime_imports.__HMRClient = null;
}
} else {