fix(assets): Remove Node deps from index of assets (#7691)

This commit is contained in:
Erika 2023-07-17 22:32:23 +02:00 committed by GitHub
parent b0d3652c59
commit cc0f81c040
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix not being able to build on Vercel Edge when `astro:assets` was enabled even when using a non-Node image service

View file

@ -1,5 +1,3 @@
export { getConfiguredImageService, getImage } from './internal.js';
export { baseService, isLocalService } from './services/service.js';
export { type LocalImageProps, type RemoteImageProps } from './types.js';
export { emitESMImage } from './utils/emitAsset.js';
export { imageMetadata } from './utils/metadata.js';

View file

@ -1,6 +1,6 @@
import type { PluginContext } from 'rollup';
import { z } from 'zod';
import { emitESMImage } from '../assets/index.js';
import { emitESMImage } from '../assets/utils/emitAsset.js';
export function createImage(pluginContext: PluginContext, entryFilePath: string) {
return () => {