deno-embedder icon indicating copy to clipboard operation
deno-embedder copied to clipboard

Support Webpack and/or Rollup (for better tree-shaking)

Open NfNitLoop opened this issue 2 years ago • 1 comments

ESBuild was easy to set up as a plugin, but it currently has a bug/limitation that re-exports (which are a recommended pattern in Deno deps.ts files) aren't properly removed by tree-shaking.

Add support for Webpack and/or Rollup to support better tree-shaking.

Additionally:

  • One of those might let me specify whether/how to chunk external dependencies?

NfNitLoop avatar Mar 16 '23 16:03 NfNitLoop

Spent some time investigating swc's spack as an alternative here (because speedy) but:

  • docs are not great
  • it doesn't resolve remote modules and I don't see a way to configure/implement that.

😞

NfNitLoop avatar May 30 '23 01:05 NfNitLoop