@wuchale/astro 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/transformer.js +1 -1
- package/package.json +1 -1
package/dist/transformer.js
CHANGED
|
@@ -205,7 +205,7 @@ export class AstroTransformer extends Transformer {
|
|
|
205
205
|
this.frontMatterStart = this.content.indexOf('---', start) + 3;
|
|
206
206
|
return this._parseAndVisitExpr(node.value, this.frontMatterStart, true);
|
|
207
207
|
};
|
|
208
|
-
visitroot = (node) => this._visitChildren(node.children);
|
|
208
|
+
visitroot = (node) => this._visitChildren(node.children ?? []); // can be undefined!
|
|
209
209
|
visitAs = (node) => this.visit(node);
|
|
210
210
|
transformAs = async () => {
|
|
211
211
|
const { ast } = await parse(this.content);
|