Skip to content
This repository was archived by the owner on Apr 9, 2020. It is now read-only.
This repository was archived by the owner on Apr 9, 2020. It is now read-only.

Cannot transform ES6 React class #57

@bayov

Description

@bayov

If I do not transpile down ES6 classes to ES5, I received:

Class constructors cannot be invoked without 'new'

Basically I have to use babel-plugin-transform-es2015-classes, even though Node.js and modern browsers already have support for ES6 classes.

Is there some way to work around this?

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