Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add "sideEffects": false to package.json #22

Merged
merged 1 commit into from
Apr 4, 2024
Merged

chore: add "sideEffects": false to package.json #22

merged 1 commit into from
Apr 4, 2024

Conversation

tmm
Copy link
Contributor

@tmm tmm commented Apr 4, 2024

Adds "sideEffects": false to package.json for maximum tree-shakability.

Without "sideEffects" switched off build systems aren't able to properly eliminate dead code (e.g. Next.js) and could still contain unused code, like wordlists, even if they are unused.

More info: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

Adds `"sideEffects": false` to package.json for maximum tree-shakability.

Without `"sideEffects"` switched off build systems aren't able to properly eliminate dead code (e.g. Next.js) and could still contain unused code, [like wordlists](wevm/viem#2069), even if they are unused.

More info: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free
@paulmillr paulmillr merged commit e823622 into paulmillr:main Apr 4, 2024
2 checks passed
@tmm tmm deleted the patch-2 branch April 4, 2024 16:43
github-merge-queue bot pushed a commit to valora-inc/wallet that referenced this pull request Sep 7, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@scure/bip39](https://paulmillr.com/)
([source](https://redirect.github.com/paulmillr/scure-bip39)) |
[`^1.3.0` ->
`^1.4.0`](https://renovatebot.com/diffs/npm/@scure%2fbip39/1.3.0/1.4.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@scure%2fbip39/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@scure%2fbip39/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@scure%2fbip39/1.3.0/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@scure%2fbip39/1.3.0/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>paulmillr/scure-bip39 (@&#8203;scure/bip39)</summary>

###
[`v1.4.0`](https://redirect.github.com/paulmillr/scure-bip39/releases/tag/1.4.0)

[Compare
Source](https://redirect.github.com/paulmillr/scure-bip39/compare/1.3.0...1.4.0)

- Bump noble-hashes to
[v1.5.0](https://redirect.github.com/paulmillr/noble-hashes/releases/tag/1.5.0)
- add `"sideEffects": false` to package.json by
[@&#8203;tmm](https://redirect.github.com/tmm) in
[paulmillr/scure-bip39#22
- Improve typescript compatibility by emitting separate types for cjs /
esm

#### New Contributors

- [@&#8203;tmm](https://redirect.github.com/tmm) made their first
contribution in
[paulmillr/scure-bip39#22

**Full Changelog**:
paulmillr/scure-bip39@1.3.0...1.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsibnBtIiwicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants