Skip to content

fix: resolve _interrupt undefined error in CJS build - #127

Merged
birme merged 1 commit into
masterfrom
fix-broken-build
Jan 15, 2026
Merged

birme merged 1 commit into
masterfrom
fix-broken-build

Conversation

@birme

@birme birme commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Refactored WebPlayer.load() to extract dynamic imports into a separate loadTech() method
  • This avoids a bug in the async-to-promises rollup plugin where switch statements with await expressions generated invalid variable scoping (referencing _interrupt before declaration)
  • Upgraded microbundle from 0.12.4 to 0.15.1

Test plan

  • All existing tests pass
  • Verified _interrupt no longer appears in compiled CJS output
  • Manual test in browser environment

🤖 Generated with Claude Code

Refactor WebPlayer.load() to extract dynamic imports into a separate
loadTech() method. This avoids a bug in the async-to-promises rollup
plugin where switch statements with await expressions generated
invalid variable scoping.

Also upgrades microbundle from 0.12.4 to 0.15.1.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@birme
birme merged commit 3eb4f5f into master Jan 15, 2026
2 checks passed
@LucasMaupin
LucasMaupin deleted the fix-broken-build branch March 18, 2026 16:13
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