You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,20 @@
2
2
3
3
Validate that your components can safely be updated with fast refresh.
4
4
5
-
⚠️ To avoid false positive, this plugin is only applied on `tsx` & `jsx` files.
5
+
## Limitations
6
+
7
+
⚠️ To avoid false positive, this plugin is only applied on `tsx` & `jsx` files ⚠️
8
+
9
+
Like the implementation for [vite](https://github.com/vitejs/vite/blob/e6495f0a52c9bd2cae166934dc965f8955ce035d/packages/plugin-react/src/fast-refresh.ts#L108), the plugin rely on naming conventions (i.e. use ). This is why there is some limitations:
10
+
11
+
-`export *` are not supported and will be reported as an error
12
+
- anonymous function are not supported (i.e `export default function() {}`)
13
+
- Full uppercase export would be considered as an error. It can be disabled locally when it's effectively a React component:
0 commit comments