angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

faster with ng serve using native esm

Open John0King opened this issue 2 years ago • 7 comments

🚀 Feature request

Command (mark with an x)

  • [ ] new
  • [ ] build
  • [x] 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

John0King avatar Nov 02 '21 04:11 John0King

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.

alan-agius4 avatar Nov 02 '21 07:11 alan-agius4

@alan-agius4 , do you know what changed with ng13?

Also, is there a way to disable obfuscation (actually minification) on dev-server ng serve of generated .js files? Not only makes it easier to debug with complete stacktraces rather than on a.eT() but also makes the build faster.

Ottunger avatar Nov 10 '21 14:11 Ottunger

@Ottunger, your issue seems to be off topic. Please file a new issue with a reproduction. Thanks.

alan-agius4 avatar Nov 10 '21 14:11 alan-agius4

@alan-agius4 I would very much appreciate if the Angular team could focus, as priority number 1, on improving the performance of ng build, serve, etc, they are crazy slow and need dire attention.

jpike88 avatar Jan 17 '22 10:01 jpike88

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] avatar Feb 01 '22 18:02 angular-robot[bot]

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Feb 22 '22 13:02 angular-robot[bot]

any progress on this ?

John0King avatar Mar 25 '22 02:03 John0King

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

Its probably not taking track cause the naming of the issue isn't obvious. I'm pretty sure a lot of people would like vite build like times.

muhamedkarajic avatar Jan 26 '23 12:01 muhamedkarajic

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

alan-agius4 avatar Nov 24 '23 13:11 alan-agius4

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.