File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " astro " : patch
3
+ ---
4
+
5
+ Fixes ` getViteConfig() ` type definition to allow passing an inline Astro configuration as second argument
Original file line number Diff line number Diff line change 1
1
type ViteUserConfig = import ( 'vite' ) . UserConfig ;
2
2
type ViteUserConfigFn = import ( 'vite' ) . UserConfigFn ;
3
3
type AstroUserConfig = import ( './dist/@types/astro.js' ) . AstroUserConfig ;
4
+ type AstroInlineConfig = import ( './dist/@types/astro.js' ) . AstroInlineConfig ;
4
5
type ImageServiceConfig = import ( './dist/@types/astro.js' ) . ImageServiceConfig ;
5
6
type SharpImageServiceConfig = import ( './dist/assets/services/sharp.js' ) . SharpImageServiceConfig ;
6
7
@@ -13,7 +14,10 @@ export function defineConfig(config: AstroUserConfig): AstroUserConfig;
13
14
/**
14
15
* Use Astro to generate a fully resolved Vite config
15
16
*/
16
- export function getViteConfig ( config : ViteUserConfig ) : ViteUserConfigFn ;
17
+ export function getViteConfig (
18
+ config : ViteUserConfig ,
19
+ inlineAstroConfig ?: AstroInlineConfig
20
+ ) : ViteUserConfigFn ;
17
21
18
22
/**
19
23
* Return the configuration needed to use the Sharp-based image service
You can’t perform that action at this time.
0 commit comments