Skip to content

Mark library as side-effect free for TreeShaking improvements #3356

@intellix

Description

@intellix

Webpack 4 added the ability to mark modules as being side-effect free. I'm not 100% sure but if this library isn't, we can mark individual files as having them. This was recently added to graphql-js as well :graphql/graphql-js#1312

Webpack docs: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions