Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jan 19, 2023
1 parent 597962d commit 47be52c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/integrations/svelte/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type ViteConfigurationArgs = {
root: URL;
};

async function getViteConfiguration({ options, isDev, root }: ViteConfigurationArgs): UserConfig {
async function getViteConfiguration({ options, isDev, root }: ViteConfigurationArgs): Promise<UserConfig> {
const defaultOptions: Partial<Options> = {
emitCss: true,
compilerOptions: { dev: isDev, hydratable: true },
Expand Down Expand Up @@ -77,10 +77,10 @@ export default function (options?: Options | OptionsCallback): AstroIntegration
name: '@astrojs/svelte',
hooks: {
// Anything that gets returned here is merged into Astro Config
'astro:config:setup': ({ command, updateConfig, addRenderer, config }) => {
'astro:config:setup': async ({ command, updateConfig, addRenderer, config }) => {
addRenderer(getRenderer());
updateConfig({
vite: getViteConfiguration({
vite: await getViteConfiguration({
options,
isDev: command === 'dev',
root: config.root,
Expand Down

0 comments on commit 47be52c

Please sign in to comment.