Skip to content

[@rollup/plugin-node-resolve] RollupNodeResolveOptions interface doesn't include ignoreSideEffectsForRoot #1824

Closed
@moose96

Description

@moose96

Expected Behavior

While using rollup config in typescript, I would expect a config object of @rollup/plugin-node-resolve to be properly typed and to include ignoreSideEffectsForRoot property, as it's documented: https://github.com/rollup/plugins/tree/master/packages/node-resolve#ignoresideeffectsforroot

Actual Behavior

Trying to use ignoreSideEffectsForRoot throws a typescript error:

Object literal may only specify known properties, and 'ignoreSideEffectsForRoot' does not exist in type 'RollupNodeResolveOptions'.

image

Additional Information

You don't actually need to reproduce the issue; it's enough to look inside the types file - RollupNodeResolveOptions interface doesn't have ignoreSideEffectsForRoot property

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