interledger / web-monetization-extension

An open-source browser extension that enables Web Monetization.
Apache License 2.0
46 stars 2 forks source link

Consider replacing webpack with esbuild/rollup for better sourcemaps #360

Open sidvishnoi opened 5 days ago

sidvishnoi commented 5 days ago

I did a quick (incomplete) test with esbuild, and could get much better sourcemaps than webpack already.

Might make sense to use rollup due to better plugin support, but haven't tested sourcemap quality yet - should be better than what webpack gives already at least.

image

sidvishnoi commented 5 days ago

Note that we'd need to update awilix container to use PROXY injection, as CLASSIC will fail with esbuild/rollyup (I verified with esbuild and wxt). See my very raw WIP esbuild branch

sidvishnoi commented 5 days ago

Current sourcemaps for example: image