summaryrefslogtreecommitdiff
path: root/examples/framework-svelte
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-01-19 21:13:40 +0800
committerGravatar GitHub <noreply@github.com> 2023-01-19 08:13:40 -0500
commita342a486c2831461e24e6c2f1ca8a9d3e15477b6 (patch)
tree3f83bd4a36152652dc2024ece5780df77daea59a /examples/framework-svelte
parent899214298cee5f0c975c7245e623c649e1842d73 (diff)
downloadastro-a342a486c2831461e24e6c2f1ca8a9d3e15477b6.tar.gz
astro-a342a486c2831461e24e6c2f1ca8a9d3e15477b6.tar.zst
astro-a342a486c2831461e24e6c2f1ca8a9d3e15477b6.zip
Refactor Svelte preprocess integration handling (#5901)
* Let user setup vitePreprocess * Abstract function * Add changeset * Update svelte syntax * Make fallback * Fix docs * Update changeset * Fix types
Diffstat (limited to 'examples/framework-svelte')
-rw-r--r--examples/framework-svelte/svelte.config.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/framework-svelte/svelte.config.js b/examples/framework-svelte/svelte.config.js
new file mode 100644
index 000000000..cbaee33df
--- /dev/null
+++ b/examples/framework-svelte/svelte.config.js
@@ -0,0 +1,5 @@
+import { vitePreprocess } from '@astrojs/svelte';
+
+export default {
+ preprocess: vitePreprocess(),
+};