Search code examples
babeljsfault-tolerance

is there a "fault-tolerant" or "loose" mode for @babel/parser?


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?


Solution

  • This is not something that Babel's parser currently supports.