Skip to content

chore: convert prebundle config files to ts#1548

Merged
Timeless0911 merged 2 commits intomainfrom
david/chore/prebundle-config-ts
Mar 20, 2026
Merged

chore: convert prebundle config files to ts#1548
Timeless0911 merged 2 commits intomainfrom
david/chore/prebundle-config-ts

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

Summary

Convert the prebundle config files in @rslib/core and rsbuild-plugin-dts from .mjs to .ts, following the same migration pattern used in rsbuild.

This switches the configs from JSDoc typing to import type { Config } from 'prebundle' with satisfies Config, while keeping the existing prebundle entries unchanged.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings March 20, 2026 04:14
Copy link
Copy Markdown
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

Converts prebundle configuration files from JSDoc-based typing to TypeScript Config typing with satisfies Config, aligning with the migration pattern used in rsbuild.

Changes:

  • Replace // @ts-check + JSDoc @type with import type { Config } from 'prebundle' and satisfies Config.
  • Migrate rsbuild-plugin-dts config from .mjs to .ts.
  • Update the “Tip” comment wording to mention dts.alias as an alternative to tsconfig.json#paths.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/plugin-dts/prebundle.config.ts New TS-based prebundle config using satisfies Config.
packages/plugin-dts/prebundle.config.mjs Removes the previous JSDoc-typed ESM config.
packages/core/prebundle.config.ts Switches existing config typing from JSDoc to satisfies Config and updates the Tip text.
Comments suppressed due to low confidence (1)

packages/core/prebundle.config.ts:4

  • End the Tip sentence with a period for consistent punctuation in this block comment.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45d3d51e3c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Timeless0911 Timeless0911 merged commit be0823e into main Mar 20, 2026
7 checks passed
@Timeless0911 Timeless0911 deleted the david/chore/prebundle-config-ts branch March 20, 2026 05:57
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.

2 participants