question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 2 years ago
  • Reactions:15
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
alan-agius4commented, Nov 2, 2021

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.

0reactions
John0Kingcommented, Mar 25, 2022

any progress on this ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found