Hacker News new | ask | show | jobs
by ushakov 1418 days ago
i assume these are not bundle sizes?

the bundle size of my Nuxt 3 app + server is only 1.2mb and bundled node_modules for the server are 9.6mb, while my dev node_modules are about 100mb

probably because Vue tools handle tree-shaking incredibly well

1 comments

This is the size of the type declarations files (.d.ts files) that `tsc` pulls in when compiling your code. This is distinct from bundle size.

Tree shaking is a big win for bundle size. One of my big takeaways from looking at these visualizations is that we badly need an equivalent for type declaration files.