summaryrefslogtreecommitdiff
path: root/src/parser/parse/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parse/index.ts')
-rw-r--r--src/parser/parse/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/parse/index.ts b/src/parser/parse/index.ts
index 052cf0317..124e125ef 100644
--- a/src/parser/parse/index.ts
+++ b/src/parser/parse/index.ts
@@ -217,6 +217,11 @@ export class Parser {
}
}
+/**
+ * Parse
+ * Step 1/3 in Astro SSR.
+ * This is the first pass over .astro files and the step at which we convert a string to an AST for us to crawl.
+ */
export default function parse(template: string, options: ParserOptions = {}): Ast {
const parser = new Parser(template, options);