Skip to content

Reduce sideffect install size by lazy loading Typescript (and support Typescript 7 RC)#4

Merged
eersnington merged 3 commits into
mainfrom
fix/npm-size
Jun 26, 2026
Merged

Reduce sideffect install size by lazy loading Typescript (and support Typescript 7 RC)#4
eersnington merged 3 commits into
mainfrom
fix/npm-size

Conversation

@eersnington

Copy link
Copy Markdown
Owner
  • Remove typescript from sideffect's production dependency graph
  • Keep TypeScript available for local development/builds as a dev dependency
  • Lazy-load TypeScript only when sideffect/vite workflow discovery actually runs
  • Keep runtime imports for sideffect and sideffect/cloudflare free of TypeScript
  • Avoid a TypeScript peer range so users can install typescript@rc, TS 7 beta/RC builds, or future TypeScript releases without npm prerelease range conflicts.

@eersnington eersnington merged commit 8fad2f3 into main Jun 26, 2026
2 checks passed
@eersnington eersnington deleted the fix/npm-size branch June 26, 2026 16:39
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.

1 participant