Skip to content

Support Webpack's sideEffects property in package.json. #10

@JHawkley

Description

@JHawkley

When it comes to the problem of side-effects, Webpack has a means of marking specific files as having them through a property on the module's package.json file.

This could be used by this plugin as an indicator to use a more rigorous processing method on them or ignore them entirely.

It is a little complex, though, as you would need to check not only the current project's package.json file, but also those of any other node_modules that may have been included by the current project.

It also is a bit dependent on other node_modules properly using this Webpack feature. Perhaps allow some configuration for a strictSideEffects mode, where any module that lacks the sideEffects property is assumed to have them and ignored by this plugin.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions