boa
boa copied to clipboard
Migrate to ESBuild for playground
We currently use Webpack for our playground builds. For faster builds we should migrate to ESBuild. An example build config for ESBuild with wasmPack is here
Some alternative plugins which will need replacing
- https://www.npmjs.com/package/esbuild-clean-plugin
- https://github.com/craftamap/esbuild-plugin-html
- https://www.npmjs.com/package/esbuild-plugin-copy
- https://www.npmjs.com/package/esbuild-plugin-wasm-pack
https://github.com/microsoft/monaco-editor/blob/main/docs/integrate-esm.md#option-2-using-plain-webpack I wonder if we can tree shake out the bits from Monaco editor we don’t need. This should help tidy up gh-pages
This is unfortunately blocked on https://github.com/evanw/esbuild/issues/253, since this is the only plugin that supports importing wasm modules. Also, https://github.com/Tschrock/esbuild-plugin-wasm-pack needs a custom patch to work correctly with workspaces. I'll try to reduce the build time of Webpack.