Skip to content

Disable tree shaking on specified modules #4090

Description

@shrinktofit

Feature Use Case

Sometimes there are modules we don't want them to be tree shaked, since their code size is too big which causes a slow build time or even memory crash. A common case is we want to disable tree shaking for asm.js modules.

Feature Proposal

Rollup option treeshake.moduleSideEffects could receive a 'no-treeshake' indicates no tree shake for this module.

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