summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/@types/astro.ts2
-rw-r--r--packages/astro/src/core/config.ts18
2 files changed, 11 insertions, 9 deletions
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<Ast
};
// Final-Pass Validation (perform checks that require the full config object)
if (!result.experimentalIntegrations && !result.integrations.every((int) => 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;