kytta / shareon

📯 Lightweight, stylish, and ethical share buttons for popular social networks
https://shareon.js.org/
MIT License
464 stars 23 forks source link

Use esbuild without Vite #109

Closed kytta closed 7 months ago

kytta commented 7 months ago

Instead of battling with Vite (e.g. https://github.com/vitejs/vite/issues/4863) and its configs, I have decided to drop it and to use esbuild directly. Builds are now 6x faster if running the script directly (not via PNPM). This has other advantages:

github-actions[bot] commented 7 months ago

size-limit report 📦

Path Size
./dist/shareon.min.css 5.97 KB (+0.05% 🔺)
./dist/shareon.es.js 0 B (-100% 🔽)
./dist/shareon.mjs 984 B (+100% 🔺)