From ab4b7396625c2a872b9d4cb7e965123d07a407f9 Mon Sep 17 00:00:00 2001 From: Michael Pellegrini <466696+mpellegrini@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:55:08 -0400 Subject: [PATCH 1/2] fix(apps/sveltekit-example-app): add back vite preprocess 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. --- apps/sveltekit-example-app/svelte.config.js | 4 ++++ packages/ui-lib-svelte/svelte.config.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/apps/sveltekit-example-app/svelte.config.js b/apps/sveltekit-example-app/svelte.config.js index 0eca652..05b4029 100644 --- a/apps/sveltekit-example-app/svelte.config.js +++ b/apps/sveltekit-example-app/svelte.config.js @@ -1,4 +1,5 @@ import adapter from '@sveltejs/adapter-node' +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -13,6 +14,9 @@ const config = { return config }, }, + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), }, } diff --git a/packages/ui-lib-svelte/svelte.config.js b/packages/ui-lib-svelte/svelte.config.js index b30a15e..9fa80d4 100644 --- a/packages/ui-lib-svelte/svelte.config.js +++ b/packages/ui-lib-svelte/svelte.config.js @@ -1,4 +1,5 @@ import adapter from '@sveltejs/adapter-auto' +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -13,6 +14,9 @@ const config = { return config }, }, + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), }, } From 18cfe8629920b499aa6196e819e1ffd7d17ccac3 Mon Sep 17 00:00:00 2001 From: Michael Pellegrini <466696+mpellegrini@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:57:59 -0400 Subject: [PATCH 2/2] fix(apps/sveltekit-example-app): add back vite preprocess Fix issues --- apps/sveltekit-example-app/svelte.config.js | 6 +++--- packages/ui-lib-svelte/svelte.config.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/sveltekit-example-app/svelte.config.js b/apps/sveltekit-example-app/svelte.config.js index 05b4029..78aaeb6 100644 --- a/apps/sveltekit-example-app/svelte.config.js +++ b/apps/sveltekit-example-app/svelte.config.js @@ -14,10 +14,10 @@ const config = { return config }, }, - // Consult https://kit.svelte.dev/docs/integrations#preprocessors - // for more information about preprocessors - preprocess: vitePreprocess(), }, + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), } export default config diff --git a/packages/ui-lib-svelte/svelte.config.js b/packages/ui-lib-svelte/svelte.config.js index 9fa80d4..d686b5f 100644 --- a/packages/ui-lib-svelte/svelte.config.js +++ b/packages/ui-lib-svelte/svelte.config.js @@ -14,10 +14,10 @@ const config = { return config }, }, - // Consult https://kit.svelte.dev/docs/integrations#preprocessors - // for more information about preprocessors - preprocess: vitePreprocess(), }, + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), } export default config