diff --git a/packages/integrations/image/src/index.ts b/packages/integrations/image/src/index.ts index 445e9ee00..eac12856d 100644 --- a/packages/integrations/image/src/index.ts +++ b/packages/integrations/image/src/index.ts @@ -32,7 +32,7 @@ export interface IntegrationOptions { export default function integration(options: IntegrationOptions = {}): AstroIntegration { const resolvedOptions = { - serviceEntryPoint: '@astrojs/image/sharp', + serviceEntryPoint: '@astrojs/image/squoosh', logLevel: 'info' as LoggerLevel, ...options, }; diff --git a/packages/integrations/image/src/lib/get-image.ts b/packages/integrations/image/src/lib/get-image.ts index 856f9f8c6..c6f5ab941 100644 --- a/packages/integrations/image/src/lib/get-image.ts +++ b/packages/integrations/image/src/lib/get-image.ts @@ -6,7 +6,7 @@ import type { TransformOptions, } from '../loaders/index.js'; import { isSSRService, parseAspectRatio } from '../loaders/index.js'; -import sharp from '../loaders/sharp.js'; +import sharp from '../loaders/squoosh.js'; import { isRemoteImage } from '../utils/paths.js'; import type { ImageMetadata } from '../vite-plugin-astro-image.js'; diff --git a/packages/integrations/image/src/vite-plugin-astro-image.ts b/packages/integrations/image/src/vite-plugin-astro-image.ts index f19c557c3..5a43909e5 100644 --- a/packages/integrations/image/src/vite-plugin-astro-image.ts +++ b/packages/integrations/image/src/vite-plugin-astro-image.ts @@ -8,7 +8,7 @@ import slash from 'slash'; import type { Plugin, ResolvedConfig } from 'vite'; import type { IntegrationOptions } from './index.js'; import type { InputFormat } from './loaders/index.js'; -import sharp from './loaders/sharp.js'; +import sharp from './loaders/squoosh.js'; import { metadata } from './utils/metadata.js'; export interface ImageMetadata {