Hedgehog-Computing / hedgehog-lab

Run, compile and execute JavaScript for Scientific Computing and Data Visualization TOTALLY TOTALLY TOTALLY in your BROWSER! An open source scientific computing environment for JavaScript TOTALLY in your browser, matrix operations with GPU acceleration, TeX support, data visualization and symbolic computation.
https://hlab.app
Apache License 2.0
2.37k stars 141 forks source link

Discussion: Which bundler to use (Webpack, Rollup, Parcel, esbuild...) #55

Open imtsuki opened 4 years ago

imtsuki commented 4 years ago

Currently create-react-app suffers from slow compilation. On my personal laptop (MacBook Pro 13' late 2017) it usually takes up to ~1 min to do a cold start, which is kind of unacceptable for this size of apps. People (including @promer94 ) are suggesting we should move to another bundler. I think we should discuss which bundler we should move to:

There are several choices:

imtsuki commented 4 years ago

CC @lidangzzz @AGDholo

AGDholo commented 4 years ago

A digression, The new project of vuejs (also the bundler of vue3(not default)) is using esbuild and Rollup: https://github.com/vitejs/vite

AGDholo commented 4 years ago

I have no professional builder development experience, so the above comments are just my immature views.

promer94 commented 4 years ago
promer94 commented 4 years ago

https://bundlers.tooling.report/

hirohe commented 3 years ago

currently vite is support directly import web workers

AGDholo commented 3 years ago

vite use esbuild,

For now, the packaging solution esbuild,snowpack is in line with the trend

AGDholo commented 2 years ago

In vite preparation, the switch will be done after the rendering issues are resolved.

https://github.com/Hedgehog-Computing/hedgehog-lab/tree/feat/vite