Skip to content

"emitDecoratorMetadata": true causes problems for IE11 #87

Description

@brettwillis

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions