Skip to content

Commit 6502681

Browse files
maxlathdominikg
andauthored
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]>
1 parent 3fa7e75 commit 6502681

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/faq.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Frequently Asked Questions
22

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+
311
### Why is component state reset on HMR update?
412

513
Preservation of local component state after JS updates is disabled to avoid unpredictable and error-prone behavior.

0 commit comments

Comments
 (0)