From 9133a428312d168f6b08a1f8917eb55b30d16bd9 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Wed, 22 Jun 2022 23:55:00 +0000 Subject: [PATCH] [ci] format --- packages/integrations/svelte/src/index.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/integrations/svelte/src/index.ts b/packages/integrations/svelte/src/index.ts index 268d5a5902..3aa27e47e3 100644 --- a/packages/integrations/svelte/src/index.ts +++ b/packages/integrations/svelte/src/index.ts @@ -1,8 +1,8 @@ import type { Options } from '@sveltejs/vite-plugin-svelte'; -import type { AstroIntegration, AstroRenderer, AstroConfig } from 'astro'; -import type { UserConfig } from 'vite' import { svelte } from '@sveltejs/vite-plugin-svelte'; +import type { AstroConfig, AstroIntegration, AstroRenderer } from 'astro'; import preprocess from 'svelte-preprocess'; +import type { UserConfig } from 'vite'; function getRenderer(): AstroRenderer { return { @@ -16,9 +16,13 @@ type ViteConfigurationArgs = { isDev: boolean; options?: Options | OptionsCallback; postcssConfig: AstroConfig['style']['postcss']; -} +}; -function getViteConfiguration({ options, postcssConfig, isDev }: ViteConfigurationArgs): UserConfig { +function getViteConfiguration({ + options, + postcssConfig, + isDev, +}: ViteConfigurationArgs): UserConfig { const defaultOptions: Partial = { emitCss: true, compilerOptions: { dev: isDev, hydratable: true }, @@ -76,7 +80,7 @@ export default function (options?: Options | OptionsCallback): AstroIntegration options, isDev: command === 'dev', postcssConfig: config.style.postcss, - }) + }), }); }, },