Skip to content

fix: avoid dual package hazard by building single CJS version that's … - #700

Merged
lukasIO merged 9 commits into
mainfrom
lukas/single-cjs-build
Jul 28, 2026
Merged

fix: avoid dual package hazard by building single CJS version that's …#700
lukasIO merged 9 commits into
mainfrom
lukas/single-cjs-build

Conversation

@lukasIO

@lukasIO lukasIO commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

…wrapped for ESM

@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 12a2fc4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@livekit/rtc-node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Comment thread packages/livekit-rtc/scripts/postbuild.mjs

@1egoman 1egoman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked about this with lukas in a 1:1, generally makes sense. However, I think it would be ideal if it could be the other way (ie, wrap the esm version and expose as commonjs) since the majority of users should be using esm these days. If that is overly burdensome / challenging, then what is here is fine.

@lukasIO
lukasIO merged commit d90627b into main Jul 28, 2026
10 checks passed
@lukasIO
lukasIO deleted the lukas/single-cjs-build branch July 28, 2026 12:54
@github-actions github-actions Bot mentioned this pull request Jul 28, 2026
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.

4 participants