Analyzes the sideEffects field from package.json.
Used by bundlers (webpack, rollup, esbuild) for tree-shaking.
Summary
Functions
Checks if a specific file has side effects.
Returns files with side effects (when sideEffects is an array).
Extracts the sideEffects value.
Checks if the package declares any side effects.
Counts tree-shakeable packages.
Checks if the package is fully tree-shakeable (sideEffects: false).
Functions
Checks if a specific file has side effects.
Returns files with side effects (when sideEffects is an array).
Extracts the sideEffects value.
Checks if the package declares any side effects.
Counts tree-shakeable packages.
Checks if the package is fully tree-shakeable (sideEffects: false).