Skip to content

Are we stick to use es5 with this library? #2535

Closed
@harumando

Description

Question

There is a little problem i ran to. For development i use typescript witch outputs as es2017. In general everything works, but i noticed that your library is compiled to es5 code where all classes are transpiled into functions. Which leads to an error with context menu decorator because the decorator tries to call a given class as a function, of course it can't so i get an error Class constructor cannot be invoked without 'new'. When i change tslint.json so it converts typescript to es5 everything seems to work.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions