Skip to content

fix: add CJS require conditions to exports map for dual ESM/CJS support#1

Merged
linuxninja39 merged 1 commit into
mainfrom
merge/refinery/da-pt7y
Feb 16, 2026
Merged

fix: add CJS require conditions to exports map for dual ESM/CJS support#1
linuxninja39 merged 1 commit into
mainfrom
merge/refinery/da-pt7y

Conversation

@linuxninja39

Copy link
Copy Markdown
Contributor

Summary

  • Adds CJS require conditions to the exports map in package.json for dual ESM/CJS support
  • Adds tsconfig.cjs.json for CommonJS build configuration
  • Updates package-lock.json version

Source: MR da-pt7y (polecat/furiosa, issue hq-som99)
Tests: 297/297 pass

Test plan

  • All 297 existing tests pass
  • Clean rebase on main

Downstream packages using require() and Vite dep pre-bundling failed with
'No known conditions for . specifier'. Added require fields to every export
path pointing to CJS builds in dist/cjs/. Build now emits both ESM and CJS.
@linuxninja39 linuxninja39 merged commit b5c598f into main Feb 16, 2026
2 checks passed
@linuxninja39 linuxninja39 deleted the merge/refinery/da-pt7y branch February 16, 2026 17:59
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