Skip to content

Commit

Permalink
fix(packages/ui-svelte): change svelte preprocessor (#49)
Browse files Browse the repository at this point in the history
Use vitePreprocess instead of svelte-preprocess may be
faster and requires less config.
  • Loading branch information
mpellegrini authored Apr 23, 2024
1 parent ea7fbc7 commit 8203331
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/ui-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"histoire": "0.17.17",
"postcss": "8.4.38",
"postcss-load-config": "5.0.3",
"svelte-preprocess": "5.1.4",
"tailwindcss": "3.4.3",
"vite": "5.2.9"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/ui-svelte/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import sveltePreprocess from 'svelte-preprocess'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

export default {
preprocess: sveltePreprocess({ postcss: true }),
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [vitePreprocess({})],
}
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8203331

Please sign in to comment.