[ci] format
This commit is contained in:
parent
42fd6936cd
commit
be6470688f
1 changed files with 3 additions and 1 deletions
|
@ -108,7 +108,9 @@ export async function getImage(
|
||||||
if (!loader) {
|
if (!loader) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const { default: mod } = await import('virtual:image-loader').catch(() => {
|
const { default: mod } = await import('virtual:image-loader').catch(() => {
|
||||||
throw new Error('[@astrojs/image] Builtin image loader not found. (Did you remember to add the integration to your Astro config?)');
|
throw new Error(
|
||||||
|
'[@astrojs/image] Builtin image loader not found. (Did you remember to add the integration to your Astro config?)'
|
||||||
|
);
|
||||||
});
|
});
|
||||||
loader = mod as ImageService;
|
loader = mod as ImageService;
|
||||||
globalThis.astroImage = globalThis.astroImage || {};
|
globalThis.astroImage = globalThis.astroImage || {};
|
||||||
|
|
Loading…
Reference in a new issue