[ci] format
This commit is contained in:
parent
ddefb172f6
commit
81758f1c1e
7 changed files with 17 additions and 16 deletions
|
@ -5,5 +5,5 @@ import preact from '@astrojs/preact';
|
|||
export default defineConfig({
|
||||
// Enable the Preact integration to support Preact JSX components.
|
||||
integrations: [preact()],
|
||||
site: `http://astro.build`
|
||||
site: `http://astro.build`,
|
||||
});
|
||||
|
|
|
@ -4,5 +4,5 @@ import preact from '@astrojs/preact';
|
|||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
integrations: [preact()],
|
||||
site: `http://astro.build`
|
||||
site: `http://astro.build`,
|
||||
});
|
||||
|
|
|
@ -10,5 +10,5 @@ export default defineConfig({
|
|||
// Enable React for the Algolia search component.
|
||||
react(),
|
||||
],
|
||||
site: `http://astro.build`
|
||||
site: `http://astro.build`,
|
||||
});
|
||||
|
|
|
@ -3,7 +3,6 @@ import { bold } from 'kleur/colors';
|
|||
import type {
|
||||
AstroGlobal,
|
||||
AstroGlobalPartial,
|
||||
Page,
|
||||
Params,
|
||||
Props,
|
||||
RuntimeMode,
|
||||
|
@ -215,12 +214,11 @@ ${extra}`
|
|||
} as unknown as AstroGlobal;
|
||||
|
||||
Object.defineProperty(Astro, 'canonicalURL', {
|
||||
get: function() {
|
||||
warn(args.logging,
|
||||
get: function () {
|
||||
warn(
|
||||
args.logging,
|
||||
'deprecation',
|
||||
`${bold(
|
||||
'Astro.canonicalURL'
|
||||
)} is deprecated! Use \`Astro.url\` instead.
|
||||
`${bold('Astro.canonicalURL')} is deprecated! Use \`Astro.url\` instead.
|
||||
Example:
|
||||
|
||||
---
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import npath from 'path-browserify';
|
||||
import type { ModuleNode, ViteDevServer } from 'vite';
|
||||
import type { Metadata } from '../../runtime/server/metadata.js';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { AstroConfig } from '../@types/astro';
|
||||
import * as path from 'path';
|
||||
import * as tsr from 'tsconfig-resolver';
|
||||
import * as url from 'url';
|
||||
import type { AstroConfig } from '../@types/astro';
|
||||
|
||||
import type * as vite from 'vite';
|
||||
|
||||
|
@ -87,7 +87,11 @@ const getConfigAlias = (cwd: string | undefined): Alias[] | null => {
|
|||
};
|
||||
|
||||
/** Returns a Vite plugin used to alias pathes from tsconfig.json and jsconfig.json. */
|
||||
export default function configAliasVitePlugin({ config: astroConfig }: { config: AstroConfig }): vite.PluginOption {
|
||||
export default function configAliasVitePlugin({
|
||||
config: astroConfig,
|
||||
}: {
|
||||
config: AstroConfig;
|
||||
}): vite.PluginOption {
|
||||
/** Aliases from the tsconfig.json or jsconfig.json configuration. */
|
||||
const configAlias = getConfigAlias(astroConfig.root && url.fileURLToPath(astroConfig.root));
|
||||
|
||||
|
|
Loading…
Reference in a new issue