diff options
Diffstat (limited to 'src/compiler/index.ts')
-rw-r--r-- | src/compiler/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/index.ts b/src/compiler/index.ts index db50abec8..c20596f65 100644 --- a/src/compiler/index.ts +++ b/src/compiler/index.ts @@ -12,7 +12,7 @@ import { createMarkdownHeadersCollector } from './markdown/micromark-collect-hea import { encodeMarkdown } from './markdown/micromark-encode.js'; import { encodeAstroMdx } from './markdown/micromark-mdx-astro.js'; import { transform } from './transform/index.js'; -import { codegen } from './codegen.js'; +import { codegen } from './codegen/index.js'; /** Return Astro internal import URL */ function internalImport(internalPath: string) { @@ -132,6 +132,8 @@ async function __render(props, ...children) { } export default __render; +${result.createCollection || ''} + // \`__renderPage()\`: Render the contents of the Astro module as a page. This is a special flow, // triggered by loading a component directly by URL. export async function __renderPage({request, children, props}) { |