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

fix(cjs): analyze exports for chained assignments in module.exports #150

Closed await-ovo closed 1 year ago

await-ovo commented 1 year ago

related https://github.com/denoland/deno/issues/19865

For the following cjs code:

exports = module.exports = {
  a,
  b,
  c,
}

Currently exports is an empty array after analyze_cjs(), it should be ["a", "b", "c"].

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.