Skip to content

Compile dependencies with same configuration as CRA uses #6079

@bbenejc

Description

@bbenejc

Is this a bug report?

No

As stated in #3776 - CRA now transpiles all node_modules with babel-preset-env. Why does it not use the same plugins as well?

I created a module, which I use in multiple of my projects. And I get an error:
Support for the experimental syntax 'classProperties' isn't currently enabled

I have to build it manually with babel every time I make changes... It works, but I am wondering if it is possible to enable the plugins to be used for node_modules some way without ejecting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions