mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
a342a486c2
commit
4f649014e9
1 changed files with 6 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
import type { Options } from '@sveltejs/vite-plugin-svelte';
|
||||
import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
import type { AstroIntegration, AstroRenderer } from 'astro';
|
||||
import type { UserConfig } from 'vite';
|
||||
import { fileURLToPath } from 'url';
|
||||
import type { UserConfig } from 'vite';
|
||||
|
||||
function getRenderer(): AstroRenderer {
|
||||
return {
|
||||
|
@ -29,7 +29,11 @@ type ViteConfigurationArgs = {
|
|||
root: URL;
|
||||
};
|
||||
|
||||
async function getViteConfiguration({ options, isDev, root }: ViteConfigurationArgs): Promise<UserConfig> {
|
||||
async function getViteConfiguration({
|
||||
options,
|
||||
isDev,
|
||||
root,
|
||||
}: ViteConfigurationArgs): Promise<UserConfig> {
|
||||
const defaultOptions: Partial<Options> = {
|
||||
emitCss: true,
|
||||
compilerOptions: { dev: isDev, hydratable: true },
|
||||
|
|
Loading…
Reference in a new issue