From e52cbad0966345f623a6a1b25f016d83891dbbd5 Mon Sep 17 00:00:00 2001 From: George Lemon Date: Fri, 22 Mar 2024 21:07:39 +0200 Subject: [PATCH] temp fix `napiOrWasm` Signed-off-by: George Lemon --- src/tim/engine/parser.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tim/engine/parser.nim b/src/tim/engine/parser.nim index c18fa10..432513b 100755 --- a/src/tim/engine/parser.nim +++ b/src/tim/engine/parser.nim @@ -1156,7 +1156,10 @@ proc parseHandle[T](i: Import[T], importFile: ImportFile, if likely(not cp.hasErrors): if cp.tpl.jitEnabled(): jitMainParser = true - partials[path] = (cp.getAst(), cp.logger.errors.toSeq) + when defined napiOrWasm: + partials[path] = (cp.getAst(), @[]) + else: + partials[path] = (cp.getAst(), cp.logger.errors.toSeq) result = cp.includes.keys.toSeq if not tpl.hasDep(i.handle.tpl.getSourcePath()): tpl.addDep(i.handle.tpl.getSourcePath())