We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb8155 commit 5d6b80eCopy full SHA for 5d6b80e
1 file changed
packages/plugin-react/src/fast-refresh.ts
@@ -100,14 +100,13 @@ function isReactRefreshBoundary(mod) {
100
return hasExports && areAllExportsComponents;
101
}
102
103
-import(/* @vite-ignore */ import.meta.url).then(mod => {
104
- import.meta.hot.accept();
+import.meta.hot.accept(mod => {
105
if (isReactRefreshBoundary(mod)) {
106
${timeout}
107
} else {
108
import.meta.hot.invalidate();
109
110
-})
+});
111
`
112
113
export function addRefreshWrapper(
0 commit comments