Build AST, find and replace tokens X, reconstruct file

I’m trying to write an application that will consume ESM files and re-write the module resolution path but despite the detailed documentation I’m not really sure where to start.

Is Acorn in itself sufficient for building an AST, replacing entities and reconstructing a file?

No. It’s a parser. You’ll need some other tools.

1 Like

and where is the detail documentation?