Hi everyone,
We are happy to share that a great improvement landed on master today: Theia now supports bundling applications with esbuild as an alternative to webpack (please see the PR for more details:
#14414)
A few things worth noting:
- Webpack continues to work as before for now, but we plan to deprecate and eventually remove the webpack bundling option. We'd encourage adopters to start trying esbuild.
- Switching is straightforward: deleting your webpack.config.js will automatically generate an esbuild.mjs on the next build. The browser, browser-only, and electron example apps also ship with an esbuild.mjs for reference.
- As part of this,
@theia/native-webpack-plugin has been renamed to
@theia/bundle-plugin. There is a short migration note in our migration guide (see
doc/Migration.md).
- On the Theia IDE side, we plan to switch to esbuild this month before the next release.
On the npm side:
-
@theia/bundle-plugin is now available on npm:
https://www.npmjs.com/package/@theia/bundle-plugin-
@theia/native-webpack-plugin has been deprecated with a pointer to the new package name:
https://www.npmjs.com/package/@theia/native-webpack-pluginBig thanks to Mark Sujew for driving this, and to Stefan Dirix and Vladimir Piskarev for the support, reviews and feedback. 🎉
We'd love to hear your thoughts and experiences once you've had a chance to try it out, and please report back any issues or feedback.
Thanks and best regards,
Nina