Skip to content

Commit 1ea5086

Browse files
committed
docs(faq): add help to debug config issues
1 parent 6b58b98 commit 1ea5086

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:
6+
7+
- `export DEBUG=vite-plugin-svelte:config ; vite`: log `vite-plugin-svelte` debug info related to the config
8+
- `export DEBUG=vite-plugin-svelte:* ; vite`: log all `vite-plugin-svelte` debug info
9+
- `export DEBUG=* ; vite`: 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)