summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/lazy-buttons-prove.md5
-rw-r--r--packages/astro/src/content/vite-plugin-content-assets.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/lazy-buttons-prove.md b/.changeset/lazy-buttons-prove.md
new file mode 100644
index 000000000..83a304128
--- /dev/null
+++ b/.changeset/lazy-buttons-prove.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fix undefined `remarkPluginFrontmatter` after calling `render` method
diff --git a/packages/astro/src/content/vite-plugin-content-assets.ts b/packages/astro/src/content/vite-plugin-content-assets.ts
index d886765bc..a1d9424ec 100644
--- a/packages/astro/src/content/vite-plugin-content-assets.ts
+++ b/packages/astro/src/content/vite-plugin-content-assets.ts
@@ -34,7 +34,7 @@ export function astroDelayedAssetPlugin({ mode }: { mode: string }): Plugin {
if (isDelayedAsset(id)) {
const basePath = id.split('?')[0];
const code = `
- export { Content, getHeadings } from ${JSON.stringify(basePath)};
+ export { Content, getHeadings, frontmatter } from ${JSON.stringify(basePath)};
export const collectedLinks = ${JSON.stringify(LINKS_PLACEHOLDER)};
export const collectedStyles = ${JSON.stringify(STYLES_PLACEHOLDER)};
`;