I'm interested in using @babel/parser to parse a Javascript source file which may or may not contain syntax errors. acorn-loose
is a thing, and esprima
can be passed a tolerant
flag with a value of true
; is there an equivalent for babel 7?
This is not something that Babel's parser currently supports.