Skip to content

Commit 6097795

Browse files
authoredJan 28, 2023
fix: fast-refresh explain link (#97)
1 parent ff85078 commit 6097795

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎packages/plugin-react/src/refreshUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function validateRefreshBoundaryAndEnqueueUpdate(prevExports, nextExports) {
3838
if (hasExports && allExportsAreComponentsOrUnchanged) {
3939
enqueueUpdate()
4040
} else {
41-
return 'Could not Fast Refresh. Learn more at https://github.com/vitejs/vite-plugin-react#consistent-components-exports'
41+
return 'Could not Fast Refresh. Learn more at https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports'
4242
}
4343
}
4444

‎playground/react/__tests__/react.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ if (!isBuild) {
7878
code.replace('An Object', 'Updated'),
7979
),
8080
[
81-
'[vite] invalidate /hmr/no-exported-comp.jsx: Could not Fast Refresh. Learn more at https://github.com/vitejs/vite-plugin-react#consistent-components-exports',
81+
'[vite] invalidate /hmr/no-exported-comp.jsx: Could not Fast Refresh. Learn more at https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports',
8282
'[vite] hot updated: /hmr/no-exported-comp.jsx',
8383
'[vite] hot updated: /hmr/parent.jsx',
8484
'Parent rendered',
@@ -103,7 +103,7 @@ if (!isBuild) {
103103
code.replace('context provider', 'context provider updated'),
104104
),
105105
[
106-
'[vite] invalidate /context/CountProvider.jsx: Could not Fast Refresh. Learn more at https://github.com/vitejs/vite-plugin-react#consistent-components-exports',
106+
'[vite] invalidate /context/CountProvider.jsx: Could not Fast Refresh. Learn more at https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports',
107107
'[vite] hot updated: /context/CountProvider.jsx',
108108
'[vite] hot updated: /App.jsx',
109109
'[vite] hot updated: /context/ContextButton.jsx',

0 commit comments

Comments
 (0)
Please sign in to comment.