Skip to content

[Bug]: Missing exports when using Rslib with Rspack 1.2.0-alpha.0 #633

Closed
@chenjiahan

Description

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:

Image

The PLUGIN_REM_NAME variable is missing from the output bundle:

Image

Reproduce link

https://github.com/rspack-contrib/rsbuild-plugin-rem

Reproduce Steps

  1. clone repo
  2. git checkout rslib_repro_1231
  3. pnpm build
  4. pnpm test

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions