diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index c1f80665fa64..43fc7ceb75d6 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -632,7 +632,7 @@ export interface AstroUserConfig { * @version 2.2.0 * @description * Specifies the prefix for Astro-generated asset links. This can be used if assets are served from a different domain than the current site. - * + * * For example, if this is set to `https://cdn.example.com`, assets will be fetched from `https://cdn.example.com/_astro/...` (regardless of the `base` option). * You would need to upload the files in `./dist/_astro/` to `https://cdn.example.com/_astro/` to serve the assets. * The process varies depending on how the third-party domain is hosted. diff --git a/packages/astro/src/assets/vite-plugin-assets.ts b/packages/astro/src/assets/vite-plugin-assets.ts index 828dcf4e60b9..1b05835e01e3 100644 --- a/packages/astro/src/assets/vite-plugin-assets.ts +++ b/packages/astro/src/assets/vite-plugin-assets.ts @@ -8,11 +8,7 @@ import type * as vite from 'vite'; import { normalizePath } from 'vite'; import type { AstroPluginOptions, ImageTransform } from '../@types/astro'; import { error } from '../core/logger/core.js'; -import { - appendForwardSlash, - joinPaths, - prependForwardSlash, -} from '../core/path.js'; +import { appendForwardSlash, joinPaths, prependForwardSlash } from '../core/path.js'; import { VIRTUAL_MODULE_ID, VIRTUAL_SERVICE_ID } from './consts.js'; import { isESMImportedImage } from './internal.js'; import { isLocalService } from './services/service.js'; diff --git a/packages/astro/src/content/vite-plugin-content-assets.ts b/packages/astro/src/content/vite-plugin-content-assets.ts index d0695f158661..d9bc842ded56 100644 --- a/packages/astro/src/content/vite-plugin-content-assets.ts +++ b/packages/astro/src/content/vite-plugin-content-assets.ts @@ -1,4 +1,3 @@ -import npath from 'node:path'; import { pathToFileURL } from 'url'; import type { Plugin } from 'vite'; import type { AstroSettings } from '../@types/astro.js'; diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index e78c75bb7730..02ba8d0217e1 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -1,7 +1,6 @@ import fs from 'fs'; import * as colors from 'kleur/colors'; import { bgGreen, black, cyan, dim, green, magenta } from 'kleur/colors'; -import npath from 'path'; import type { OutputAsset, OutputChunk } from 'rollup'; import { fileURLToPath } from 'url'; import type {