From 875457a430eaf6e51ec289b7537b25c6484824e8 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Wed, 14 Sep 2022 09:30:16 -0500 Subject: [PATCH] Revert "defaulting to Sharp for the initial @next release" This reverts commit 1a8d4f7f603ac08b24ae6cd390f3a0fe39f4c87d. --- packages/integrations/image/src/index.ts | 2 +- packages/integrations/image/src/lib/get-image.ts | 2 +- packages/integrations/image/src/vite-plugin-astro-image.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {