Skip to content

feat: switch from Bun to Node.js shebang for dramatic size reduction#13

Open
watany-dev wants to merge 1 commit intomainfrom
claude/issue-10-20250625_002950
Open

feat: switch from Bun to Node.js shebang for dramatic size reduction#13
watany-dev wants to merge 1 commit intomainfrom
claude/issue-10-20250625_002950

Conversation

@watany-dev
Copy link
Copy Markdown
Owner

Switches from Bun standalone binary to Node.js shebang approach for dramatic bundle size reduction.

Changes

  • Change shebang from #!/usr/bin/env bun to #!/usr/bin/env node
  • Update import.meta.main check for Node.js ESM compatibility
  • Modify tsconfig.json for Node.js compilation output
  • Update build script to create Node.js executable instead of Bun binary
  • Fix TypeScript strict mode compatibility issues

Results

  • Size reduction: 100MB → 4KB (99.996% smaller!)
  • Performance: Requires Node.js runtime instead of embedded Bun
  • Compatibility: Works on any system with Node.js installed

Closes #10

Generated with Claude Code

- Change shebang from `#!/usr/bin/env bun` to `#!/usr/bin/env node`
- Update import.meta.main check for Node.js ESM compatibility
- Modify tsconfig.json for Node.js compilation output
- Update build script to create Node.js executable instead of Bun binary
- Fix TypeScript strict mode compatibility issues
- Achieve 99.996% size reduction (100MB → 4KB)

Co-authored-by: watany <watany-dev@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.

reduce

1 participant