mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
30d0fcedbb
commit
9b7e419989
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ export async function validateConfig(userConfig: any, root: string): Promise<Ast
|
||||||
console.error('Update your configuration and install new dependencies:');
|
console.error('Update your configuration and install new dependencies:');
|
||||||
try {
|
try {
|
||||||
const rendererKeywords = userConfig.renderers.map((r: string) => r.replace('@astrojs/renderer-', ''));
|
const rendererKeywords = userConfig.renderers.map((r: string) => r.replace('@astrojs/renderer-', ''));
|
||||||
const rendererImports = rendererKeywords.map((r: string) => ` import ${r} from '@astrojs/${r === "solid" ? "solid-js" : r}';`).join("\n");
|
const rendererImports = rendererKeywords.map((r: string) => ` import ${r} from '@astrojs/${r === 'solid' ? 'solid-js' : r}';`).join('\n');
|
||||||
const rendererIntegrations = rendererKeywords.map((r: string) => ` ${r}(),`).join('\n');
|
const rendererIntegrations = rendererKeywords.map((r: string) => ` ${r}(),`).join('\n');
|
||||||
console.error('');
|
console.error('');
|
||||||
console.error(colors.dim(' // astro.config.js'));
|
console.error(colors.dim(' // astro.config.js'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue