forge42dev/Remix-Dev-Tools

RDT increases HMR rebuild time

xHomu opened this issue · 4 comments

RDT adds a decent overhead to the hmr rebuild atm, adding up to half second to a clean template on an older machine.

This is probably because the lucide dependency, here's a tree-map comparison with/without RDT installed:

image image

We should able to at least treeshake out lucide by using @jacobparis' Sly https://sly-cli.fly.dev/

@xHomu I've been wanting to move away from lucide for this exact reason for a big ass while now, even mentioned it in our discord chat a while back, I think this is a good time to do that

Looks much better now!

image

Looks much better now!

image

You gotta show me where to see this so I can tree shake it more

Run Lighthouse in Chrome devtools, there should be a treemap button underneath the web vital scores.

image

To see the actual bundles in a production build, you need to use remix run --sourcemap.