full site update
This commit is contained in:
4
node_modules/astro/dist/content/runtime-assets.js
generated
vendored
4
node_modules/astro/dist/content/runtime-assets.js
generated
vendored
@@ -1,12 +1,14 @@
|
||||
import { z } from "zod";
|
||||
import { emitESMImage } from "../assets/utils/node/emitAsset.js";
|
||||
function createImage(pluginContext, shouldEmitFile, entryFilePath) {
|
||||
function createImage(pluginContext, shouldEmitFile, entryFilePath, experimentalSvgEnabled) {
|
||||
return () => {
|
||||
return z.string().transform(async (imagePath, ctx) => {
|
||||
const resolvedFilePath = (await pluginContext.resolve(imagePath, entryFilePath))?.id;
|
||||
const metadata = await emitESMImage(
|
||||
resolvedFilePath,
|
||||
pluginContext.meta.watchMode,
|
||||
// FUTURE: Remove in this in v6
|
||||
experimentalSvgEnabled,
|
||||
shouldEmitFile ? pluginContext.emitFile : void 0
|
||||
);
|
||||
if (!metadata) {
|
||||
|
Reference in New Issue
Block a user