DrSensor / nusa

incremental runtime that bring both simplicity and power into webdev (buildless, cross-language, data-driven)
MIT License
4 stars 0 forks source link

I hate JS bundler šŸ˜… #53

Closed DrSensor closed 1 year ago

DrSensor commented 1 year ago

List of JS bundler specific issues

esbuild

rollup+sucrase+esbuild

[^1]: Dynamic import() on non-module <script> is supported in all latest browser but without top-level await. [^2]: The current setup emit constant/colon.ts as a chunk but other constant/*.ts got inlined. The current workaround is to not import it directly but re-export it on different module (i.e export * as ColonFor from "./constant/colon.ts" in registry.ts) with a caveat that it's not tree-shaken and wrapped inside Object.freeze.

TODO

DrSensor commented 1 year ago

Not using JavaScript as your primary build system really do the magic šŸ˜