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
docs(faq): add help to debug config issues (#1167)
* docs(faq): add help to debug config issues
* use inlined DEBUG env variable
Co-authored-by: Dominik G. <[email protected]>
* fixup! docs(faq): add help to debug config issues
---------
Co-authored-by: Dominik G. <[email protected]>
Copy file name to clipboardExpand all lines: docs/faq.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Frequently Asked Questions
2
2
3
+
### Something is wrong with my config, how can I find where the problem comes from?
4
+
5
+
`vite` and `vite-plugin-svelte` can be made more verbose by using the debug mode (powered by and following the conventions of the [`debug`](https://github.com/debug-js/debug) library):
6
+
7
+
-`DEBUG=vite-plugin-svelte:config vite dev`: log `vite-plugin-svelte` debug info related to the config
8
+
-`DEBUG=vite-plugin-svelte:* vite dev`: log all `vite-plugin-svelte` debug info
9
+
-`DEBUG=* vite dev`: log all debug info
10
+
3
11
### Why is component state reset on HMR update?
4
12
5
13
Preservation of local component state after JS updates is disabled to avoid unpredictable and error-prone behavior.
0 commit comments