fix(assets): Remove Node deps from index of assets (#7691)
This commit is contained in:
parent
b0d3652c59
commit
cc0f81c040
3 changed files with 6 additions and 3 deletions
5
.changeset/shy-garlics-join.md
Normal file
5
.changeset/shy-garlics-join.md
Normal 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
|
|
@ -1,5 +1,3 @@
|
||||||
export { getConfiguredImageService, getImage } from './internal.js';
|
export { getConfiguredImageService, getImage } from './internal.js';
|
||||||
export { baseService, isLocalService } from './services/service.js';
|
export { baseService, isLocalService } from './services/service.js';
|
||||||
export { type LocalImageProps, type RemoteImageProps } from './types.js';
|
export { type LocalImageProps, type RemoteImageProps } from './types.js';
|
||||||
export { emitESMImage } from './utils/emitAsset.js';
|
|
||||||
export { imageMetadata } from './utils/metadata.js';
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { PluginContext } from 'rollup';
|
import type { PluginContext } from 'rollup';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { emitESMImage } from '../assets/index.js';
|
import { emitESMImage } from '../assets/utils/emitAsset.js';
|
||||||
|
|
||||||
export function createImage(pluginContext: PluginContext, entryFilePath: string) {
|
export function createImage(pluginContext: PluginContext, entryFilePath: string) {
|
||||||
return () => {
|
return () => {
|
||||||
|
|
Loading…
Reference in a new issue