Skip to content

[Bug]: Rspack 1.3.6 RspackOptions type no longer has onProxyRes in devServer.proxy config #10748

@giavinh79

Description

@giavinh79

System Info

System:

  • OS: macOS 15.5
  • CPU: (10) arm64 Apple M1 Pro
  • Memory: 84.64 MB / 32.00 GB
  • Shell: 5.9 - /opt/homebrew/bin/zsh

npmPackages:

  • @rspack/cli: 1.3.6 => 1.3.6
  • @rspack/core: 1.3.6 => 1.3.6
  • @rspack/plugin-react-refresh: ^1.4.3 => 1.4.3

Binaries:

  • Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
  • npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
  • pnpm: 8.14.0 - ~/.nvm/versions/node/v20.15.1/bin/pnpm

Browsers:

  • Chrome: 137.0.7151.120
  • Edge: 137.0.3296.83
  • Safari: 18.5

Details

When using the RspackOptions type from "@rspack/core", devServer.onProxyRes doesn't seem to be typed anymore (despite it functioning fine still).

Noticed this change after the 1.3.6 update. This behaviour can still be observed in version 1.3.15

Reproduce link

https://github.com/giavinh79/rspack-on-proxy-res-repro

Reproduce Steps

In fork above,

  1. pnpm i
  2. Navigate to rspack.config.ts and restart TS server. onProxyRes in serverProxy constant is typed: Image
  3. Install 1.3.6 for @rspack/cli and @rspack/core and restart TS server.
  4. Navigate back to rspack.config.ts
  5. No longer see intellisense for this property despite it working fine if you were to add this property

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions