Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Remove reflect-metadata polyfill from the server #1088

@d2kx

Description

@d2kx

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions