Skip to content

fix: dev server type#28

Merged
GiveMe-A-Name merged 2 commits intomainfrom
fix/options-type
Apr 23, 2025
Merged

fix: dev server type#28
GiveMe-A-Name merged 2 commits intomainfrom
fix/options-type

Conversation

@LingyuCoder
Copy link
Copy Markdown
Contributor

@LingyuCoder LingyuCoder commented Apr 23, 2025

fix dev server type to pass CI

@LingyuCoder LingyuCoder requested review from 9aoy and Copilot April 23, 2025 03:26
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 addresses type compatibility issues for the development server by updating type casts and field definitions.

  • Updated the type cast in the super constructor of the RspackDevServer class in src/server.ts.
  • Modified the proxy type in the dev server configuration in src/config.ts to use Required for better type safety.

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
src/server.ts Added a ts-ignore comment for rspack path types and updated the options cast in the constructor call.
src/config.ts Changed the proxy field type from WebpackDevServer.ProxyConfigArray to Required<DevServer["proxy"]>.
Files not reviewed (2)
  • package.json: Language not supported
  • pnpm-lock.yaml: Language not supported

@GiveMe-A-Name
Copy link
Copy Markdown

CI failed 😢

@GiveMe-A-Name GiveMe-A-Name merged commit f0649d3 into main Apr 23, 2025
7 checks passed
@GiveMe-A-Name GiveMe-A-Name deleted the fix/options-type branch April 23, 2025 04:00
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.

5 participants