Skip to content

perf: upgrade rslog and bundle into to main chunk#1541

Merged
Timeless0911 merged 1 commit intomainfrom
david/chore/core-rslog-v2
Mar 17, 2026
Merged

perf: upgrade rslog and bundle into to main chunk#1541
Timeless0911 merged 1 commit intomainfrom
david/chore/core-rslog-v2

Conversation

@Timeless0911
Copy link
Contributor

@Timeless0911 Timeless0911 commented Mar 17, 2026

Summary

Upgrade packages/core to rslog v2 and stop rewriting its runtime import to the prebundled CJS copy.

Bundle the rslog dependency into the main chunk to reduce require() calls, while still aliasing its prebundled types for declaration generation so consumers no longer depend on the old compiled runtime path.

Related Links

close: #1511

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings March 17, 2026 10:12
@Timeless0911 Timeless0911 changed the title build(core): upgrade rslog to v2 perf: upgrade rslog and bundle into to main chunk Mar 17, 2026
@Timeless0911 Timeless0911 enabled auto-merge (squash) March 17, 2026 10:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Upgrades packages/core to rslog v2 and changes the build setup so rslog is bundled into the core runtime output while only the prebundled rslog types are used during declaration generation.

Changes:

  • Bump rslog dependency to ^2.0.1.
  • Stop path/externals rewriting to the prebundled CJS runtime; bundle rslog in core output instead.
  • Keep using prebundled rslog types for DTS generation via rslib aliasing and prebundle dtsOnly.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
packages/core/tsconfig.json Removes TS path mapping that previously redirected rslog imports to the prebundled copy.
packages/core/rslib.config.ts Adds DTS alias for rslog types and stops externalizing rslog runtime.
packages/core/prebundle.config.mjs Switches rslog prebundle to dtsOnly and removes CJS copy step.
packages/core/package.json Upgrades rslog to v2.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@Timeless0911 Timeless0911 merged commit 4188326 into main Mar 17, 2026
15 checks passed
@Timeless0911 Timeless0911 deleted the david/chore/core-rslog-v2 branch March 17, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants