Re:Why we switched from Webpack to Vite
by ng12 on Wednesday April 28, 2021 @06:16PM
(#26974928)
Would you count the size of the JVM when you do Hello World in Java?
[ Parent
| on HN ]
Re:Why we switched from Webpack to Vite
by hombre_fatal on Wednesday April 28, 2021 @06:33PM
(#26975096)
You could, since it’s a runtime dep. But a better comparison would be to the client dev tool chains in other ecosystems, like Xcode (11GB), though still not very interesting. Turns out client dev is hard and it doesn’t make much sense hand wringing over dev tool size metrics.
Better to look at how well they solve their problem space.
Re:Why we switched from Webpack to Vite
by Scarbutt on Wednesday April 28, 2021 @06:46PM
(#26975213)
No because they are not counting the size of the browser or nodejs
Re:Why we switched from Webpack to Vite
by valdiorn on Wednesday April 28, 2021 @07:37PM
(#26975589)
you could and it would still be much smaller.
Re:Why we switched from Webpack to Vite
by callmeal on Wednesday April 28, 2021 @08:18PM
(#26975885)
Java HelloWorld runs in 1mb:
20:18:01 /tmp > echo 'public class HelloWorld {public static void main(String[] args) {System.out.println("Hello World!");}}' > HelloWorld.java
20:18:09 /tmp > javac HelloWorld.java
20:18:14 /tmp > java -Xmx1m HelloWorld
Hello World!