Skip to content

[Bug]: resolve.symlinks is unavailable #5001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JounQin opened this issue Apr 11, 2025 · 3 comments
Closed

[Bug]: resolve.symlinks is unavailable #5001

JounQin opened this issue Apr 11, 2025 · 3 comments

Comments

@JounQin
Copy link
Contributor

JounQin commented Apr 11, 2025

Version

System:
    OS: macOS 15.4
    CPU: (10) arm64 Apple M1 Max
    Memory: 5.47 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 135.0.7049.85
    Safari: 18.4
  npmPackages:
    @rspress/config: workspace:* => 1.0.0

Details

TypeScript complains, and enforce passing it takes no effect.

Reproduce link

web-infra-dev/rspress#2052 (comment)

Reproduce Steps

Add in e2e/fixtures/symlink/rspress.config.ts

builderConfig: {
  resolve: {
    symlinks: false
  }
},

Run

pnpm test:e2e symlink
@JounQin JounQin closed this as completed Apr 11, 2025
@JounQin
Copy link
Contributor Author

JounQin commented Apr 11, 2025

Oh, found:

builderConfig: {
  tools: {
    rspack: {
      resolve: {
        symlinks: false
      }
    }
  },
}

@chenjiahan
Copy link
Member

Currently only tools.rspack.resolve.symlink is available.

We are still hesitant to add a resolve.symlink option to the Rsbuild configuration, as its usage scenarios seem to be relatively rare.

@JounQin
Copy link
Contributor Author

JounQin commented Apr 11, 2025

That's fine, I just don't know there is tools.rspack.resolve.symlink available.

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

No branches or pull requests

2 participants