unjs / mlly

🤝 Common ECMAScript module utils
MIT License
471 stars 36 forks source link

Fully switch to AST analyzes #219

Open pi0 opened 10 months ago

pi0 commented 10 months ago

Syntax detects and code analyzes utils introduced since initial versions of mlly are Regexbased which are fast and fairly stable. However, they often come to limitations and edge-cases + make extracting more syntax information harder without risky and less stable solutions.

I am thinking of switching to a (native) AST parser in the next major version of mlly to make it more stable solution.