... and undebuggable :) I personally dropped webpack and babel with their nice .jsx syntax for React and write plain JavaScript. It's both faster (save the file and reload the page) and I can see real line numbers if there's an error.
It turned out to be quite good even though React calls are now more verbose. Syntactic sugar is overrated :)
I.e. to add more complexity to solve the issue? :) No thanks. I usually prefer to try the other direction first: to remove complexity to solve the issue. If the result works for me, then I keep it this way. (Judging from this discussion this is kinda unconventional.)
If you are using a build process you can normally generate map files, which allow debugging of the pre-processed files.
Compiling typescript to es6, and then transpiling it to es5, while debugging the typescript files is a thing. The debugging isn't perfect though, chrome gets confused with captured this references in arrow functions, but it's still very useful.
0
u/MikhailEdoshin Jul 19 '16
... and undebuggable :) I personally dropped webpack and babel with their nice .jsx syntax for React and write plain JavaScript. It's both faster (save the file and reload the page) and I can see real line numbers if there's an error.
It turned out to be quite good even though React calls are now more verbose. Syntactic sugar is overrated :)