summaryrefslogtreecommitdiff
path: root/src/compiler/index.ts
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-04-12 17:21:29 -0600
committerGravatar GitHub <noreply@github.com> 2021-04-12 17:21:29 -0600
commit3639190b4e1b4c97836d448fa80a58aa45c823a7 (patch)
tree31160f051aa00cb0ebb820ab2061fb7d16956ee0 /src/compiler/index.ts
parent687ff5bacd8c776e514f53c4b59c3a67274d3971 (diff)
downloadastro-3639190b4e1b4c97836d448fa80a58aa45c823a7.tar.gz
astro-3639190b4e1b4c97836d448fa80a58aa45c823a7.tar.zst
astro-3639190b4e1b4c97836d448fa80a58aa45c823a7.zip
Renaming to import.meta.fetchContent (#70)
* Change to import.meta.glob() Change of plans—maintain parity with Snowpack and Vite because our Collections API will use a different interface * Get basic pagination working * Get params working * Rename to import.meta.fetchContent * Upgrade to fdir
Diffstat (limited to 'src/compiler/index.ts')
-rw-r--r--src/compiler/index.ts4
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}) {