Skip to content

remove top level await wrapper #6

@vijithassar

Description

@vijithassar

By loading lit-node as a module instead of via a special interpreter or REPL, it becomes possible to do literate programming in Markdown using standard Node commands.

However, as originally designed, lit-node also transparently wraps imported modules in an async function, which is convenient but also subtly changes the runtime behavior in a way that will be quite unexpected for users who are running lit-node as a module using the regular node interpreter. Perhaps this behavior should be removed in pursuit of consistency.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions