Adding `sideEffects: false` to package.json
- Dominant language
- JavaScript
- Stars
- 599
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Hello! :)
Would it make sense to add `sideEffects: false` to `package.json`? This can enable more tree-shaking, in some cases: [documentation](https://github.com/webpack/webpack/blob/main/examples/side-effects/README.md)
Other popular libraries, such as `axios`, have been adding this flag: https://github.com/axios/axios/pull/5025
I'd be happy to open a PR :)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing package.json and the linked webpack side-effects documentation to understand the proposed metadata. Check whether regexparam has any package-level side effects, then update package.json if appropriate and verify that the published package metadata enables tree-shaking as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100