Skip to content

Added "sideEffects": false to package.json#212

Open
neoncube2 wants to merge 1 commit into
developit:mainfrom
neoncube2:side-effects-flag
Open

Added "sideEffects": false to package.json#212
neoncube2 wants to merge 1 commit into
developit:mainfrom
neoncube2:side-effects-flag

Conversation

@neoncube2

Copy link
Copy Markdown

What is the purpose of this pull request? (put an "X" next to an item)

  • Documentation update
  • Bug fix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • CI related changes
  • Other, please explain:

Added "sideEffects": false to package.json. Apparently, this can enable more tree-shaking, in some cases: documentation

Other popular libraries, such as axios, have been adding this flag: axios/axios#5025

What changes did you make? (Give an overview)

See above

Is there anything you'd like reviewers to focus on?

It'd probably be smart for someone with a project that is directly using mitt to test this change.

Does this PR introduce a breaking change? (What changes might other developers need to make in their application due to this PR?)

Shouldn't be a breaking change

@kibertoad

Copy link
Copy Markdown

@developit any chance this gets merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants