Skip to content

chore(deps): upgrade dev dependencies and fix react externalization#10

Merged
ConsoleTVs merged 2 commits into
mainfrom
chore/upgrade-dev-dependencies
May 10, 2026
Merged

chore(deps): upgrade dev dependencies and fix react externalization#10
ConsoleTVs merged 2 commits into
mainfrom
chore/upgrade-dev-dependencies

Conversation

@ConsoleTVs
Copy link
Copy Markdown
Member

Summary

  • Upgrade all devDependencies to their latest versions (oxfmt 0.48, typescript 6.0, vite-plugin-dts 5.0, and others via semver range)
  • Fix ESM build issue where react/cjs/react-compiler-runtime.production.js was inlined as CJS into the ESM bundle, causing require("react") errors at runtime — replaced explicit externals list with /^react(-dom)?(\/.*)?$/ regex
  • Adapt vite-plugin-dts plugin config for v5 breaking change (outDiroutDirs)

Verification

  • Build passes (npm run build)
  • All 61 tests pass (npm test)
  • ESM output (dist/*.js) contains no require() calls

Upgrade all devDependencies to latest versions:
- oxfmt 0.44 -> 0.48
- typescript 5.9 -> 6.0
- vite-plugin-dts 4.5 -> 5.0
- Other deps updated via semver range

Fix ESM build inlining react-compiler-runtime CJS by replacing
the explicit react externals list with a regex pattern that
catches all react subpath imports.

Adapt vite-plugin-dts config for v5 breaking change (outDir -> outDirs).
@ConsoleTVs ConsoleTVs marked this pull request as ready for review May 10, 2026 21:47
@ConsoleTVs ConsoleTVs merged commit a3d5918 into main May 10, 2026
6 checks passed
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