Skip to content

Commit

Permalink
temp fix napiOrWasm
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Mar 22, 2024
1 parent 4ba16fd commit e52cbad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tim/engine/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit e52cbad

Please sign in to comment.