You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build hangs on error when setting api: "modern-compiler" in sass-loader.
In webpack, the process exits when an error occurs.
Removing the following setting allows the process to exit in rspack as well:
Thiry1
changed the title
[Bug]: Build Hangs on Error When Setting api: "modern-compiler" in sass-loader
[Bug]: Build hangs on error when setting api: "modern-compiler" in sass-loader
Mar 17, 2025
According to the following comment, it seems that close is intentionally not called in case of an error. However, as a result, the shutdown hook is not triggered, and sass-embedded is not disposed of.
System Info
System:
OS: macOS 14.7
CPU: (8) arm64 Apple M2
Memory: 90.69 MB / 24.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 22.14.0 - ~/.nodebrew/current/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.9.2 - ~/.nodebrew/current/bin/npm
pnpm: 8.15.3 - ~/.nodebrew/current/bin/pnpm
Browsers:
Chrome: 134.0.6998.89
Chrome Canary: 136.0.7072.0
Edge: 134.0.3124.68
Safari: 18.0
npmPackages:
@rspack/cli: ^1.2.8 => 1.2.8
@rspack/core: ^1.2.8 => 1.2.8
Details
Build hangs on error when setting api: "modern-compiler" in sass-loader.
In webpack, the process exits when an error occurs.
Removing the following setting allows the process to exit in rspack as well:
{ loader: "sass-loader", options: { - api: "modern-compiler", implementation: require("sass-embedded"), } }
Reproduce link
https://github.com/Thiry1/rspack-bug-repro/compare/hang-sass-loader
Reproduce Steps
The text was updated successfully, but these errors were encountered: