guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
917 stars 48 forks source link

Use valid ES6 syntax for catching the error #84

Closed MrBananaLord closed 3 years ago

MrBananaLord commented 3 years ago

It's a minor change and it's fixing the syntax, so it's a valid ES6. (It led to issue with asset precompilation when using more strict syntax checks.)

guybedford commented 3 years ago

Thanks, happy to include that!