Skip to content

fix: bundle ws types in declarations#209

Merged
chenjiahan merged 1 commit intomainfrom
chenjiahan/fix-bundle-ws-types
Apr 25, 2026
Merged

fix: bundle ws types in declarations#209
chenjiahan merged 1 commit intomainfrom
chenjiahan/fix-bundle-ws-types

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Apr 25, 2026

Summary

This PR makes the generated public declaration file self-contained for the ws types exposed by @rspack/dev-server. It bundles @types/ws during dts generation so consumers can typecheck the package without installing ws or @types/ws themselves.

Fixes #206

@chenjiahan chenjiahan marked this pull request as ready for review April 25, 2026 13:13
Copilot AI review requested due to automatic review settings April 25, 2026 13:13
@chenjiahan chenjiahan merged commit f1cb953 into main Apr 25, 2026
5 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/fix-bundle-ws-types branch April 25, 2026 13:14
Copy link
Copy Markdown

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

This PR updates the rslib DTS bundling configuration so the generated dist/index.d.ts can include the ws type surface without requiring consumers of @rspack/dev-server to install ws or @types/ws.

Changes:

  • Add @types/ws to the dts.bundle.bundledPackages list for the server build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

@rspack/dev-server fails to declare it's dependency on @types/ws

2 participants