Version
System:
    OS: macOS 14.6.1
    CPU: (16) arm64 Apple M3 Max
    Memory: 2.71 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 131.0.6778.205
    Safari: 17.6
  npmPackages:
    @rslib/core: ^0.2.2 => 0.2.2 
Details
Overrides Rspack to 1.2.0-alpha.0:
"pnpm": {
  "overrides": {
    "@rspack/core": "1.2.0-alpha.0"
  }
}, 
Then the rsbuild-plugin-rem is broken:

The PLUGIN_REM_NAME variable is missing from the output bundle:

Reproduce link
https://github.com/rspack-contrib/rsbuild-plugin-rem
Reproduce Steps
- clone repo
 
- git checkout rslib_repro_1231
 
- pnpm build
 
- pnpm test