Node.js Amaro Features
Author: avivkellerCreated Sep 15, 2026Updated Sep 17, 2026
tokenize(src):Token[], where a token is{ kind, start, end }with kind in keyword,identifier,number,bigint,string,template,regexp,comment,punctuator.findTopLevelAwaits(src):Array<{ line, column }>isRecoverableErrorneeds to supportSyntaxError::Unexpected { got: "<eof>" }. 4.transformModuleSyntaxso 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.
Source: swc-project/swc