You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing out some different avenues for leveraging esbuild so far has promising results.
Using a simple rollup build with esbuild builds a functioning Dojo app within 3 seconds. The one issue remaining here is it's re-processing the css modules in node_modules and I think we might need to write our own plugins to resolve that simillarly to with the existing dojo build. The main concern here is obviously that this is an extremely simple build and after building out the full set of functionality currently provided by cli-build-app the performance differences might evaporate.
Simply using the esbuild loader instead of the ts loader also reduced builld times by about 20% no a basic Dojo app, from 11 seconds to 9 seconds. This branch of that same example repo is using a version of cli-build-app that includes the changes here.
The only thing we'd need to worry about here as far as I can tell is the transforms. We could easily switch to the ts loader for The registry transform since it's triggered by an explicit configuration. For the import transform we may need to wait to see if esbuild gets plugin support that would allow us to do something analagous. Or potentially we use esbuild only for dev builds and ts loader for production.
Investigate if it's possible to build a Dojo project with esbuild
The text was updated successfully, but these errors were encountered: