porsager / flems

A single file web playground and sandbox
Do What The F*ck You Want To Public License
489 stars 83 forks source link

Remove Babel auto-switch #99

Closed barneycarroll closed 2 years ago

barneycarroll commented 3 years ago

AFAICT Flems automatically switches js files to Babel transpilation if it encounters a parse error (assuming new language feature?). The feature trigger is misguided – casually typing out Javascript with constant evaluation is bound to generate plenty of parse errors – but also the Babel config shipped is less featured than current Chrome, so I typically end up with regeneratorRuntime is not defined if I'm using await or generators, even though the browser I'm using supports these natively.

porsager commented 3 years ago

Yeah, this has annoyed and confused me quite some times now as well. Let's get rid of that automagically bablification!