Skip to content

Commit

Permalink
fix(apps/sveltekit-example-app): add back vite preprocess (#172)
Browse files Browse the repository at this point in the history
It was initially thought that
vitePreprocess was not needed with Svelte 5
but its unclear if this ever was a true
statement. Adding it back for now.
  • Loading branch information
mpellegrini authored Oct 3, 2024
1 parent f5ed173 commit f1d0764
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/sveltekit-example-app/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import adapter from '@sveltejs/adapter-node'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand All @@ -14,6 +15,9 @@ const config = {
},
},
},
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
}

export default config
4 changes: 4 additions & 0 deletions packages/ui-lib-svelte/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import adapter from '@sveltejs/adapter-auto'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand All @@ -14,6 +15,9 @@ const config = {
},
},
},
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
}

export default config

0 comments on commit f1d0764

Please sign in to comment.