fix: remove rollup type import
This commit is contained in:
parent
1c41762e8c
commit
0f06166eb4
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ import Markdoc from '@markdoc/markdoc';
|
|||
import type { AstroConfig, AstroIntegration, ContentEntryType, HookParameters } from 'astro';
|
||||
import fs from 'node:fs';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import type * as rollup from 'rollup';
|
||||
import { getAstroConfigPath, MarkdocError, parseFrontmatter } from './utils.js';
|
||||
|
||||
type IntegrationWithPrivateHooks = {
|
||||
|
@ -36,7 +35,7 @@ export default function markdoc(markdocConfig: Config = {}): IntegrationWithPriv
|
|||
addContentEntryType({
|
||||
extensions: ['.mdoc'],
|
||||
getEntryInfo,
|
||||
getRenderModule({ entry }: any): Partial<rollup.LoadResult> {
|
||||
getRenderModule({ entry }) {
|
||||
validateRenderProperties(markdocConfig, config);
|
||||
const ast = Markdoc.parse(entry.body);
|
||||
const content = Markdoc.transform(ast, {
|
||||
|
|
Loading…
Reference in a new issue