Skip to content

Move rolldown IIFE config to config files#783

Open
kraenhansen wants to merge 1 commit into
mainfrom
kh/rolldown-config
Open

Move rolldown IIFE config to config files#783
kraenhansen wants to merge 1 commit into
mainfrom
kh/rolldown-config

Conversation

@kraenhansen

@kraenhansen kraenhansen commented May 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Extract inline rolldown CLI options into rolldown.config.ts for both client and react packages
  • Add explicit output.globals mappings, fixing MISSING_GLOBAL_NAME warnings in the react package
  • Rename build:iife script to bundle

Test plan

  • node --run bundle in both packages produces clean output with no warnings
  • pnpm turbo build passes across the monorepo

🤖 Generated with Claude Code


Note

Low Risk
Low risk build-system change limited to bundling configuration; main risk is accidental differences in IIFE output/globals that could affect CDN consumers.

Overview
Moves IIFE bundling for @elevenlabs/client and @elevenlabs/react from inline rolldown CLI flags to new rolldown.config.ts files, and renames the script from build:iife to bundle.

Adds explicit output.globals mappings (including @elevenlabs/client and @elevenlabs/client/internal for the React bundle) while keeping the same externals and output targets (dist/lib.iife.js with sourcemaps).

Reviewed by Cursor Bugbot for commit 5b8745e. Bugbot is set up for automated code reviews on this repo. Configure here.

Extract inline rolldown CLI options into rolldown.config.ts for both
client and react packages. This adds explicit global variable mappings
for external dependencies (fixing MISSING_GLOBAL_NAME warnings in the
react package) and renames the script from "build:iife" to "bundle".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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.

1 participant