3 ms·
Having a zero-build-step bundle is a quick & easy way to experiment with a library and add simple interactions to existing static HTML websites, which is a big
by niutech 3y ago
Having a zero-build-step bundle is a quick & easy way to experiment with a library and add simple interactions to existing static HTML websites, which is a big plus.
However, according to BundleJS, only nuejs-core's compile() method is 36.2KB minified gzipped: https://deno.bundlejs.com/badge?q=nuejs-core@0.1.0&treeshake=%5B%7B+compile+%7D%5D https://deno.bundlejs.com/badge?q=nuejs-core@0.1.0&treeshake... - it is nowhere close to 2.3KB as on your website. Compare it to petite-vue's bundle, which is only 7.3KB: https://deno.bundlejs.com/badge?q=petite-vue@0.4.1 https://deno.bundlejs.com/badge?q=petite-vue@0.4.1
- tipiirai 3y agopetite-vue is about 3x bigger than Nue. here's the script: https://nuejs.org/@nue/js/nue.js https://nuejs.org/@nue/js/nue.js local gzip on my machine is 2.3kb
- niutech 3y agoYes, but it's only the Nue runtime which is 2.3KB, the compiler bundle is 36KB. Petite Vue includes everything in 7KB.