Skip to content

Adding sideEffects: false to package.json #34057

@neoncube2

Description

@neoncube2

Would it make sense to add sideEffects: false to package.json in the react,react-dom, use-sync-external-store, scheduler, etc. packages? It was already added to the react-is package: #27701

Adding sideEffects: false can enable more tree-shaking, in some cases: documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions