Revert "defaulting to Sharp for the initial @next release"

This reverts commit 1a8d4f7f60.
This commit is contained in:
Tony Sullivan 2022-09-14 09:30:16 -05:00
parent 1513296267
commit 875457a430
3 changed files with 3 additions and 3 deletions

View file

@ -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,
};

View file

@ -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';

View file

@ -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 {