-
-
Notifications
You must be signed in to change notification settings - Fork 781
Description
System Info
System:
OS: macOS 15.3.1
CPU: (12) arm64 Apple M2 Pro
Memory: 81.34 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v22.11.0/bin/yarn
npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
pnpm: 10.7.0 - /opt/homebrew/bin/pnpm
Watchman: 2024.11.18.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 134.0.6998.166
Safari: 18.3
Safari Technology Preview: 18.4
npmPackages:
@rspack/cli: latest => 1.3.1
@rspack/core: latest => 1.3.1
Details
Circular Dependencies plugin docs recommend using compilation.errors.push to add compilation errors when cycle is detected but this does not work.
Doc link: https://rspack.dev/plugins/rspack/circular-dependency-rspack-plugin#examples
Are the docs wrong or is there a bug?
Additionally, clarification how to push errors to the build would be appreciated.
Thank you
Reproduce link
https://github.com/bostondv/rspack-repro/tree/cycle
Reproduce Steps
Run example provided.