Skip to content

feat: support shared lib config fields#1755

Open
elecmonkey wants to merge 2 commits into
mainfrom
elecmonkey/feat-global-lib-config
Open

feat: support shared lib config fields#1755
elecmonkey wants to merge 2 commits into
mainfrom
elecmonkey/feat-global-lib-config

Conversation

@elecmonkey

@elecmonkey elecmonkey commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

This PR makes the already-supported shared lib configuration pattern part of the public TypeScript API. Rslib can merge selected top-level library options into each lib item at runtime, and this change exposes that behavior in RslibConfig types for fields that are safe to use as defaults: bundle, autoExtension, autoExternal, redirect, syntax, externalHelpers, banner, footer, shims, and outBase.

Options that identify or materially specialize a single output, such as format, id, dts, umdName, and experiments, remain per-lib only.

Checklist

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploying rslib with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9d9955e
Status: ✅  Deploy successful!
Preview URL: https://496aab13.rslib.pages.dev
Branch Preview URL: https://elecmonkey-feat-global-lib-c.rslib.pages.dev

View logs

@elecmonkey elecmonkey force-pushed the elecmonkey/feat-global-lib-config branch from 76fdbfd to 9090eda Compare July 8, 2026 07:45
@elecmonkey elecmonkey marked this pull request as ready for review July 9, 2026 06:46
Copilot AI review requested due to automatic review settings July 9, 2026 06:46

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

@Timeless0911 Timeless0911 changed the title feat(types): support shared lib config fields feat: support shared lib config fields Jul 9, 2026
Comment thread packages/core/src/types/config.ts Outdated
* @defaultValue `true`
* @see {@link https://rslib.rs/config/lib/experiments#experimentsadvancedesm}
*/
advancedEsm?: boolean;

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.

this has been removed

@elecmonkey elecmonkey force-pushed the elecmonkey/feat-global-lib-config branch from 808ee1e to 9d9955e Compare July 9, 2026 08:22
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.

3 participants