How to make a widget except extends WidgetType?

When I new a widgets extends WidgetType, it throws class constructor cannot be invoked without 'new'.

Now, I can’t change the tsconfig and babel, is there an another way to make a widget?

I don’t think so, no.