← Back to context

Comment by srgpqt

8 years ago

I think you just described ES6 compiled by Babel pretty well. Most people have gotten used to this disconnect.

Well, with Babel you at least have source maps so you can get the original source locations in your backtraces.

  • There's nothing stopping other compile-to-javascript languages from having source maps too

    • Yes, it’s a pretty standard feature which is why it works so well. You can Typescript->ES->bundled ES->bundled minified ES and Chrome will point you directly at the original source in the debugger (once you give it permission).

  • One of the benefits I've seen while using Elm is that you virtually never need browser-based backtraces. The Elm compiler catches everything and has much better error messages, in my opinion.