Skip to content

Commit 74008cc

Browse files
authoredJan 11, 2024
fix(assets): Implement all hooks in the passthrough image service (#9668)
* fix(assets): Implement all hooks in the passthrough image service * chore: changeset
1 parent 87ede76 commit 74008cc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎.changeset/long-mangos-walk.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"astro": patch
3+
---
4+
5+
Fix the passthrough image service not generating `srcset` values properly

‎packages/astro/src/assets/services/noop.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ import { baseService, type LocalImageService } from './service.js';
22

33
// Empty service used for platforms that neither support Squoosh or Sharp.
44
const noopService: LocalImageService = {
5+
...baseService,
56
propertiesToHash: ['src'],
6-
validateOptions: baseService.validateOptions,
7-
getURL: baseService.getURL,
8-
parseURL: baseService.parseURL,
9-
getHTMLAttributes: baseService.getHTMLAttributes,
107
async transform(inputBuffer, transformOptions) {
118
return {
129
data: inputBuffer,

0 commit comments

Comments
 (0)
Please sign in to comment.