From c544dffb148f08518600ea6b7096450e978304ff Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 30 Oct 2024 16:53:20 -0500 Subject: feat: Svelte (#34) * feat: Svelte Signed-off-by: Matt Strapp * oopsie Signed-off-by: Matt Strapp * add docs Signed-off-by: Matt Strapp * dev dependency Signed-off-by: Matt Strapp * Lint Signed-off-by: Matt Strapp * CI: Check formatting Signed-off-by: Matt Strapp * Add line ending thingy Signed-off-by: Matt Strapp * Update prettier and typescript versions in package.json Signed-off-by: Matt Strapp --------- Signed-off-by: Matt Strapp --- src/packages/svelte/svelte.config.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/packages/svelte/svelte.config.js (limited to 'src/packages/svelte/svelte.config.js') diff --git a/src/packages/svelte/svelte.config.js b/src/packages/svelte/svelte.config.js new file mode 100644 index 0000000..1295460 --- /dev/null +++ b/src/packages/svelte/svelte.config.js @@ -0,0 +1,18 @@ +import adapter from '@sveltejs/adapter-auto'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + // Consult https://svelte.dev/docs/kit/integrations + // for more information about preprocessors + preprocess: vitePreprocess(), + + kit: { + // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://svelte.dev/docs/kit/adapters for more information about adapters. + adapter: adapter() + } +}; + +export default config; -- cgit v1.2.3