Spread operator slow with application
builder
#28874
Labels
angular/build:application
area: @angular/build
freq1: low
Only reported by a handful of users who observe it rarely
severity4: memory/performance
type: bug/fix
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
Hello,
I noticed that the spread operator is significantly slower (sometimes more than 2x slower) when using vite instead of webpack.
This doubles the loading time of some of our components.
In my minimal reproduction, I get an average of 10ms with webpack and 35ms with vite, with both firefox and chrome.
Is this indeed an issue with angular and is there any way to fix it?
Thank you
Please provide a link to a minimal reproduction of the bug
https://github.com/jopelle1/repro-angular-vite
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: