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
* wip: first steps
* wip: second day, getting a hang for it
* fix: don't destructure api
* mostly working, but hacky raw/direct need work
* ensure hotUpdate returns non-svelte modules, cleanup
* fix: load raw&svelte files ourselves to prevent vite asset middleware from turning them into a default export, reorder plugins
* heureka
* fixes for rolldown: remove duplicate optimizer setup and use svelte5 syntax to mount test app
* fix: add back .svelte optimizer extension, remove unused file
* chore: remove unused files & code
* chore: add changesets
* chore: add test for preprocessor transform order
* chore: fix rolldown-vite
* fix again
* docs: add section about vite-plugin-transforms for preprocessing svelte
* chore: deprecate plugin.api.sveltePreprocess
* refactor: remove advanced raw queries
* improve inspector plugin
* chore: improve regex and documentation for code normalization in hotUpdate
Copy file name to clipboardExpand all lines: docs/faq.md
+1-13Lines changed: 1 addition & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,19 +82,7 @@ However, `cssHash` is respected in production builds as HMR is a dev-only featur
82
82
83
83
### How do I add a Svelte preprocessor from a Vite plugin?
84
84
85
-
If you are building a Vite plugin that transforms CSS or JS, you can add a `api.sveltePreprocess: PreprocessorGroup` to your Vite plugin definition and it will be added to the list of Svelte preprocessors used at runtime.
86
-
87
-
```js
88
-
constvitePluginCoolCss= {
89
-
name:'vite-plugin-coolcss',
90
-
api: {
91
-
sveltePreprocess: {
92
-
/* your PreprocessorGroup here */
93
-
}
94
-
}
95
-
/*... your cool css plugin implementation here .. */
96
-
};
97
-
```
85
+
You don't have to anymore. See [advanced usage](advanced-usage.md) for examples how to put transform hooks before or after Svelte preprocess or compile
98
86
99
87
### What is going on with Vite and `Pre-bundling dependencies:`?
0 commit comments