-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
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.