astro/packages/astro/config.mjs
Erika c2c71d90c2
fix: better error when Sharp can't be resolved (ex: pnpm) (#8128)
* fix: better error when Sharp can't be resolved (ex: pnpm)

* chore: changeset

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 15:02:55 +02:00

22 lines
421 B
JavaScript

export { defineConfig, getViteConfig } from './dist/config/index.js';
export function sharpImageService() {
return {
entrypoint: 'astro/assets/services/sharp',
config: {},
};
}
export function squooshImageService() {
return {
entrypoint: 'astro/assets/services/squoosh',
config: {},
};
}
export function passthroughImageService() {
return {
entrypoint: 'astro/assets/services/noop',
config: {},
};
}