faster with ng serve using native esm
See original GitHub issueπ Feature request
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Description
Angular CLI: 12.2.12
Node: 14.18.1
Package Manager: yarn 1.22.11
OS: win32 x64
today with a simple app created by ng new
, it take 19+second to complete with ng server
, that feel really slower.
updateοΌ cold ng s
(eg. first time build) take about 1min10s to complete on a HDD disk, 19s is for sub sequence ng s
.
Describe the solution youβd like
May take advantage of native esm instead of compile all the dependencies
Describe alternatives youβve considered
anything that can may ng serve
faster on windows,
ng build
normally only effect release , but ng serve
about about develop time , a reasonable time is <= 6s
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Angular serve fails with esm - node.js - Stack Overflow
I just created a fresh Angular universal app using Angular cli. it just works fine. however, when I just add "type": "module" toΒ ......
Read more >What does it take to support Node.js ESM? β The Guild
I have worked on all The Guild's libraries and graphql-js to support ESM. Here is how you can do it too.
Read more >Angular package format
Developers can rely on Angular CLI and ng-packagr (a build tool Angular CLI uses) to produce packages in the Angular package format.
Read more >Angular 13 in Depth - SΓ©bastien Dubois
The ng serve command now uses webpack-dev-server 4.x, which uses WebSockets to push changes to the browser. Check out the release notes of...
Read more >Setting Up Angular from Scratch. No CLI - Medium
If you use angular-cli and run npm install you will end up with the huge number of dependencies. Since in this article we're...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for this feature request.
This is actually something that we have been discussing recently and is definitly on our radar of this we want to investigate in the near future.
any progress on this ?