Skip to content

Commit 8315ebf

Browse files
committed
fix: get module exports
1 parent e53210b commit 8315ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/refresh-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const inWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof
8181
newCode = `${sharedHead}${newCode}
8282
8383
if (import.meta.hot && !inWebWorker) {
84-
import.meta.hot.getExports().then((currentExports) => {
84+
import.meta.hot.getExports(import.meta.url).then((currentExports) => {
8585
RefreshRuntime.registerExportsForReactRefresh(${JSON.stringify(
8686
id,
8787
)}, currentExports);

0 commit comments

Comments
 (0)