Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"emitDecoratorMetadata": true causes problems for IE11 #87

Open
brettwillis opened this issue Oct 28, 2019 · 0 comments
Open

"emitDecoratorMetadata": true causes problems for IE11 #87

brettwillis opened this issue Oct 28, 2019 · 0 comments

Comments

@brettwillis
Copy link

The TypeScript config has "emitDecoratorMetadata": true, which causes "design:type" metadata to be emitted in decorators in the build output.

Firstly, I'm not sure if runtime type metadata is necessary here, please review.

Secondly, the metadata in the decorators cause incompatibility with IE11, because some properties with type EventTarget cause the error in IE11:

'EventTarget' is undefined

Including polyfills for EventTarget seem to cause me trouble with the WebComponent polyfills... I haven't sunk to much time into this approach.

Anyway, may I suggest "emitDecoratorMetadata": false, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant