Comments (1)
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.
from cli-build-app.
Related Issues (20)
- Compile legacy and modern builds in a single pass HOT 4
- Move to eslint for consumers
- POC build using snowpack HOT 3
- Command exits when using watch or serve HOT 1
- `single-bundle` and `omit-hash` schema options are unused
- Unable to use dependencies installed using npm link
- Avoid iltorb native dependency HOT 5
- Source map paths are flattened
- Upgrade to webpack 5 HOT 1
- Proxy configuration not being honored HOT 4
- On my local machine i have problems to run the dojo "npm run build" command, please help, on other machines it just runs fine HOT 4
- Cyclic dependency errors with @arcgis/core package HOT 13
- Builds fail with web3 HOT 3
- Add the ability to store resources against individual pages in the cache for Build Time Render
- BTR should skip tel links HOT 1
- build fails after upgrading to v7 when there are widgets that use i18n with horrible error message
- @dojo/cli-build-app does not work with M1 macs
- Fresh Generated Sample Program get errors on compile, cannot proceed development HOT 3
- Bug #475 Fresh Generated Sample Program get errors on compile, cannot proceed development still happens
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli-build-app.