Skip to content

react-scripts 2.0 breaks some monorepos #4569

Closed
@bradfordlemley

Description

@bradfordlemley

Is this a bug report?

Yes

Description

Certain monorepos (e.g. ones with nwb components) are incompatible with react-scripts 2.0, which means that certain existing monorepos (that currently work with react-scripts 1.0) will be broken with react-scripts 2.0.

This is because the current react-scripts 2.0 treats all packages in the monorepo that are included by the app as source packages (transpiled, linted, and tested), and there is no mechanism for opting them in or out.

The following issues are a result of not being able to opt packages in/out:

Steps to Reproduce

See issues above.

Reproducible Demo

See issues above, or:
https://github.com/bradfordlemley/cra-monorepo-examples/tree/optin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions