fixes counting tags to be closed when a component can't be rendered (#490)
This commit is contained in:
parent
ff7ec2fc02
commit
2b51e9e4b3
1 changed files with 1 additions and 0 deletions
|
@ -609,6 +609,7 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile
|
|||
paren++;
|
||||
buffers[curr] += `h(${wrapper}, ${attributes ? generateAttributes(attributes) : 'null'}`;
|
||||
} catch (err) {
|
||||
paren--;
|
||||
// handle errors in scope with filename
|
||||
const rel = filename.replace(astroConfig.projectRoot.pathname, '');
|
||||
// TODO: return actual codeframe here
|
||||
|
|
Loading…
Reference in a new issue