Skip to content

chore: flatten package Rslib configs - #1938

Merged
Timeless0911 merged 1 commit into
mainfrom
refactor-package-rslib-configs
Sep 25, 2026
Merged

Timeless0911 merged 1 commit into
mainfrom
refactor-package-rslib-configs

Conversation

@Timeless0911

Copy link
Copy Markdown
Contributor

Motivation

The core and dts packages each define a single lib item solely to hold options that Rslib also supports at the top level. Removing the wrapper simplifies these package configs.

Changes

Move the declaration settings to top-level dts in both packages and keep shims.esm.require at the top level for dts. The shim is still needed by bundled tsconfig-paths: disabling it causes require is not defined at runtime. Builds and lint pass, and the before/after output files are byte-for-byte identical.

Copilot AI lite review requested due to automatic review settings September 25, 2026 10:31

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified, and all reviewed changes are approval-ready.

Review effort: Lite
Findings: None

What changed in this PR

Flattens the Rslib configurations for the core and plugin-dts packages while preserving declaration and ESM shim behavior.

Changes:

  • Moves dts settings to the top level.
  • Moves the required ESM require shim to the top level in plugin-dts.
File Description
packages/​core/​rslib.config.ts Flattens declaration configuration.
packages/​plugin-dts/​rslib.config.ts Flattens declaration and shim configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Timeless0911 Timeless0911 changed the title refactor: flatten package Rslib configs chore: flatten package Rslib configs Sep 25, 2026
@Timeless0911
Timeless0911 merged commit 6ee55bc into main Sep 25, 2026
12 checks passed
@Timeless0911
Timeless0911 deleted the refactor-package-rslib-configs branch September 25, 2026 10:38
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

Sponsor
SponsoredKunjungi sekarang
Promo