Skip to content

build: add sideEffects false to package.json#88

Merged
zeevdr merged 1 commit into
mainfrom
feat/sideeffects-false
May 24, 2026
Merged

build: add sideEffects false to package.json#88
zeevdr merged 1 commit into
mainfrom
feat/sideeffects-false

Conversation

@zeevdr
Copy link
Copy Markdown
Member

@zeevdr zeevdr commented May 24, 2026

Summary

  • Enables bundlers (webpack, rollup, esbuild) to tree-shake unused SDK exports, reducing final bundle size for consumers.
  • Without this flag, bundlers must assume every module has side effects and include the entire SDK regardless of what is imported.

Test plan

  • Audited all src/ files for top-level side effects — none found (only pure const declarations, class/function exports)
  • biome check and tsc --noEmit pass
  • vitest run passes

Closes #57

Enables bundlers (webpack, rollup, esbuild) to tree-shake unused exports
from the SDK. Audited all source files — no top-level side effects present.

Co-Authored-By: Claude <noreply@anthropic.com>
Closes #57
@zeevdr zeevdr added this to the Beta Readiness milestone May 24, 2026
@zeevdr zeevdr added size: S Quick win — a few hours or less priority: P1 Current milestone work labels May 24, 2026
@zeevdr zeevdr enabled auto-merge (squash) May 24, 2026 13:00
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zeevdr zeevdr merged commit 63711bb into main May 24, 2026
14 checks passed
@zeevdr zeevdr deleted the feat/sideeffects-false branch May 24, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: P1 Current milestone work size: S Quick win — a few hours or less

Projects

None yet

Development

Successfully merging this pull request may close these issues.

package.json: sideEffects:false for tree-shaking

1 participant