Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> It hardly matters

For the hundredth time: it does matter.

Stop wasting people's time with slow tools and telling them it doesn't matter. That's not a way to treat your users.

Your fancy hot module reloading is not what I want. What I want is to reload the page and see my changes.

I've never seen a "hot reload" that works properly. The one some of co workers are using right now works like this:

- You edit a file

- You wait 5 seconds for the "instant" rebuild

- The browser reloads the page 5 times

- After a total of over 10 seconds, you can finally see the effects of your changes.

Maybe vite's HMR is better, I will never know because I don't care.

The link you sent has the following to answer why not esbuild:

> some of the important features needed for bundling applications are still work in progress - in particular code-splitting and CSS handling.

But this is not true. It handles css and does code splitting. Now, you have to be very explicit about code splitting: you have to define other entry points that share the same libraries as the main program so that it forces those shared libraries into separate chunks. To have more chunks you have more entry points where each entry point uses just one or two libraries. Yes, it's not perfect, but it's not a blocker for getting to production.

Where as the 30 seconds build is a total blocker for development iteration.



Sample size of 1 here: My vite project hot reloads in a few milliseconds, keeps state, and shows me all recent changes with no issues. Sounds like your co-workers are using webpack-based hmr, that can become slow very fast.


> What I want is to reload the page and see my changes.

And what other people want is to not having to reload everything, lose all state on the page and make API requests all over when they add a 2px margin.

> I've never seen a "hot reload" that works properly.

Yeah, you've never seen a hot reload that works properly means someone else can't develop something new that works. And whatever crappy workflow that you enjoy must be great for everyone else.

Anyway, talking to close minded individuals is pointless, so this is it.


> lose all state on the page and make API requests all over

That's the difference.

I don't make API request in local development mode.

If I do, the response is instant.

> Yeah, you've never seen a hot reload that works properly means someone else can't develop something new that works.

It might work, but if the cost is increasing build time from 1 second to 30 seconds, it's not worth it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: