You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
One of the promoted features of Angular 7 is the removal of the reflect-metadata polyfill by default, claiming it is only necessary in JIT mode and needlessly slows down performance in production mode. reflect-metadata is still mentioned and automatically added for Angular Universal within the server.ts file however.
What is the proposal?
Remove the following line from the Angular Universal/Angular Express Engine schematics, and the documentation:
import 'reflect-metadata';
Is there anything else we should know?
I have commented out the line in my Universal application and it still runs fine. However, I am not sure if there is anything specific about this polyfill that I am not aware of, that it might still be needed for Universal. But from the sounds of the Angular 7 blog post, it just wastes performance right now.
Proposal
Remove reflect-metadata polyfill from the server
What is the summary of the proposal?
One of the promoted features of Angular 7 is the removal of the reflect-metadata polyfill by default, claiming it is only necessary in JIT mode and needlessly slows down performance in production mode. reflect-metadata is still mentioned and automatically added for Angular Universal within the server.ts file however.
What is the proposal?
Remove the following line from the Angular Universal/Angular Express Engine schematics, and the documentation:
import 'reflect-metadata';Is there anything else we should know?
I have commented out the line in my Universal application and it still runs fine. However, I am not sure if there is anything specific about this polyfill that I am not aware of, that it might still be needed for Universal. But from the sounds of the Angular 7 blog post, it just wastes performance right now.