full site update
This commit is contained in:
9
node_modules/astro/dist/content/vite-plugin-content-imports.js
generated
vendored
9
node_modules/astro/dist/content/vite-plugin-content-imports.js
generated
vendored
@@ -4,7 +4,6 @@ import * as devalue from "devalue";
|
||||
import { getProxyCode } from "../assets/utils/proxy.js";
|
||||
import { AstroError } from "../core/errors/errors.js";
|
||||
import { AstroErrorData } from "../core/errors/index.js";
|
||||
import { isServerLikeOutput } from "../core/util.js";
|
||||
import { CONTENT_FLAG, DATA_FLAG } from "./consts.js";
|
||||
import {
|
||||
getContentEntryExts,
|
||||
@@ -76,7 +75,7 @@ function astroContentImportPlugin({
|
||||
const code = `
|
||||
export const id = ${JSON.stringify(id)};
|
||||
export const collection = ${JSON.stringify(collection)};
|
||||
export const data = ${stringifyEntryData(data, isServerLikeOutput(settings.config))};
|
||||
export const data = ${stringifyEntryData(data, settings.buildOutput === "server")};
|
||||
export const _internal = {
|
||||
type: 'data',
|
||||
filePath: ${JSON.stringify(_internal.filePath)},
|
||||
@@ -100,7 +99,7 @@ export const _internal = {
|
||||
export const collection = ${JSON.stringify(collection)};
|
||||
export const slug = ${JSON.stringify(slug)};
|
||||
export const body = ${JSON.stringify(body)};
|
||||
export const data = ${stringifyEntryData(data, isServerLikeOutput(settings.config))};
|
||||
export const data = ${stringifyEntryData(data, settings.buildOutput === "server")};
|
||||
export const _internal = {
|
||||
type: 'content',
|
||||
filePath: ${JSON.stringify(_internal.filePath)},
|
||||
@@ -172,6 +171,8 @@ async function getContentEntryModule(params) {
|
||||
{ id, collection, _internal, unvalidatedData },
|
||||
collectionConfig,
|
||||
params.shouldEmitFile,
|
||||
// FUTURE: Remove in this in v6
|
||||
id.endsWith(".svg"),
|
||||
pluginContext
|
||||
) : unvalidatedData;
|
||||
const contentEntryModule = {
|
||||
@@ -197,6 +198,8 @@ async function getDataEntryModule(params) {
|
||||
{ id, collection, _internal, unvalidatedData },
|
||||
collectionConfig,
|
||||
params.shouldEmitFile,
|
||||
// FUTURE: Remove in this in v6
|
||||
id.endsWith(".svg"),
|
||||
pluginContext
|
||||
) : unvalidatedData;
|
||||
const dataEntryModule = {
|
||||
|
Reference in New Issue
Block a user