Skip to content

Add sideEffects: false to package.json#216

Open
xxiaoxiong wants to merge 1 commit into
developit:mainfrom
xxiaoxiong:add-sideeffects
Open

Add sideEffects: false to package.json#216
xxiaoxiong wants to merge 1 commit into
developit:mainfrom
xxiaoxiong:add-sideeffects

Conversation

@xxiaoxiong
Copy link
Copy Markdown

@xxiaoxiong xxiaoxiong commented May 30, 2026

Summary

Adds sideEffects: false to package.json to enable better tree-shaking in webpack and other bundlers.

Changes

  • package.json: Added "sideEffects": false

Why

When bundlers see sideEffects: false, they can safely eliminate unused exports via tree-shaking. This follows the same pattern used by other popular libraries such as axios (axios/axios#5025).

Closes #210

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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.

Adding sideEffects: false to package.json

1 participant