Skip to content

Commit

Permalink
fix(assets): Implement all hooks in the passthrough image service
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Jan 11, 2024
1 parent 8059a19 commit 6d3f098
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/astro/src/assets/services/noop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import { baseService, type LocalImageService } from './service.js';

// Empty service used for platforms that neither support Squoosh or Sharp.
const noopService: LocalImageService = {
...baseService,
propertiesToHash: ['src'],
validateOptions: baseService.validateOptions,
getURL: baseService.getURL,
parseURL: baseService.parseURL,
getHTMLAttributes: baseService.getHTMLAttributes,
async transform(inputBuffer, transformOptions) {
return {
data: inputBuffer,
Expand Down

0 comments on commit 6d3f098

Please sign in to comment.