Skip to content

fix(types): support typed loader options - #152

Open
ityuany wants to merge 1 commit into
rstackjs:mainfrom
ityuany:codex/typed-loader-options
Open

fix(types): support typed loader options#152
ityuany wants to merge 1 commit into
rstackjs:mainfrom
ityuany:codex/typed-loader-options

Conversation

@ityuany

@ityuany ityuany commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • parameterize Rule.use and Use with the concrete loader options type
  • keep string loader options supported while allowing type-safe options and tap callbacks
  • add SWC and string options type coverage plus documentation

Testing

  • pnpm test:types
  • pnpm lint
  • pnpm exec prettier --check README.md types/index.d.ts types/test/rspack-chain-tests.ts
  • git diff --check

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