Skip to content

fix: target ES2017 for compatibility with older bundlers#19

Merged
sergical merged 3 commits intomainfrom
fix/es2017-compatibility
Dec 23, 2025
Merged

fix: target ES2017 for compatibility with older bundlers#19
sergical merged 3 commits intomainfrom
fix/es2017-compatibility

Conversation

@sergical
Copy link
Copy Markdown
Owner

Summary

  • Set tsup target to ES2017 to transpile ES2020+ syntax (??, ?.)
  • Add build compatibility tests to prevent regression

Fixes #18

Test plan

  • All 108 tests pass
  • Bundle size within limits (CJS: 12.86KB/13KB, ESM: 6.92KB/7KB)
  • Build output verified to not contain ES2020+ syntax

🤖 Generated with Claude Code

sergical and others added 3 commits December 23, 2025 13:46
Fixes #18. Users with older build setups (Vue 2 + babel-loader) that
don't transpile node_modules were getting parse errors from ES2020+
syntax like nullish coalescing (??) and optional chaining (?.).

- Set tsup target to es2017 to transpile modern syntax
- Add build compatibility tests to prevent regression

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@sergical sergical merged commit efe63f8 into main Dec 23, 2025
7 checks passed
@sergical sergical deleted the fix/es2017-compatibility branch December 23, 2025 18:54
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.

Unable to import to use.

1 participant