diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 40bf6d93a..70969f7ec 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -423,7 +423,7 @@ export interface AstroUserConfig { * Default: false */ experimentalIntegrations?: boolean; - + /** * @docs * @name vite diff --git a/packages/astro/src/core/config.ts b/packages/astro/src/core/config.ts index 884edca71..a675252f1 100644 --- a/packages/astro/src/core/config.ts +++ b/packages/astro/src/core/config.ts @@ -210,14 +210,16 @@ export async function validateConfig(userConfig: any, root: string): Promise int.name.startsWith('@astrojs/'))) { - throw new Error([ - `Astro integrations are still experimental.`, - ``, - `Only official "@astrojs/*" integrations are currently supported.`, - `To enable 3rd-party integrations, use the "--experimental-integrations" flag.`, - `Breaking changes may occur in this API before Astro v1.0 is released.`, - `` - ].join('\n')); + throw new Error( + [ + `Astro integrations are still experimental.`, + ``, + `Only official "@astrojs/*" integrations are currently supported.`, + `To enable 3rd-party integrations, use the "--experimental-integrations" flag.`, + `Breaking changes may occur in this API before Astro v1.0 is released.`, + ``, + ].join('\n') + ); } // If successful, return the result as a verified AstroConfig object. return result;