denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
148 stars 45 forks source link

Add functionality equivalent for "cjs-module-lexer" #53

Closed bartlomieju closed 2 years ago

bartlomieju commented 2 years ago

https://github.com/nodejs/cjs-module-lexer

Basically we need a function, that given a CJS module source will return a list of exports and reexports.

We need this functionality for https://github.com/denoland/deno/issues/12648 and https://github.com/denoland/deno/issues/13200

dsherret commented 2 years ago

Implemented in #55