Comment

Comment by skrebbel

I really like opinionated books like these.

I've a question for HN on one of the opinions in this book: "use Browserify". There is only 1 single reason I don't currently use Browserify for client-side web apps: debugging. If Browserify turns all my files into one big file, all the time, and that's the only way, then how am I going to debug without going insane?

I know about source maps, but I use many compile-to-JS languages (TypeScript and React's JSX, in my case), and they provide source maps already. Afaik, Browserify doesn't re-map those source maps, or something like that.

Can I conclude that people who use Browserify simply never use compile-to-JS languages? Am I really forced to choose one of:

    * Avoid Browserify (and similar tools)
    * Write only vanilla JS
    * Deal with having to in-browser-debug a single 20000 line JS file
    * Finally spend time to contribute source map remapping to Browserify
Any ideas? Am I missing something awesome?
parent skrebbel 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton