#12378·swc

Node.js Amaro Features

Author: avivkellerCreated Sep 15, 2026Updated Sep 17, 2026
  1. tokenize(src): Token[], where a token is { kind, start, end } with kind in keyword, identifier, number, bigint, string, template, regexp, comment, punctuator.
  2. findTopLevelAwaits(src): Array<{ line, column }>
  3. isRecoverableError needs to support SyntaxError::Unexpected { got: "<eof>" }. 4.transformModuleSyntax so imports declare bindings (const fs = __nodeREPLImport0.default;) instead of only rewriting references within the same input.

If you open a PR to help with this, I can confirm it's validity and workability before it lands. Thank you!

In the meantime, I'm opening a PR against Node core for partial Amaro replacemnet.