We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
System: OS: macOS 15.1.1 CPU: (12) arm64 Apple M2 Pro Memory: 562.38 MB / 32.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 131.0.6778.205 Edge: 131.0.2903.112 Safari: 18.1.1 npmPackages: @rsbuild/core: ^1.1.11 => 1.1.11 @rsbuild/plugin-react: ^1.1.0 => 1.1.0 @rsbuild/plugin-sass: ^1.1.2 => 1.1.2
场景:
src/_var.scss
additionalData
@use
@import "xxx"
现在发现这2个结合时,打包后的产物会把 @use xxx 打包进去。当不使用 @import "xxx" 加载三方时,就没这个问题。
@use xxx
https://github.com/xuexb/rsbuild-codesandbox-example
nvm use
pnpm install
pnpm build
cat dist/static/css/index.*.css
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
Details
场景:
src/_var.scss
),并在additionalData
配置中使用@use
全局加载@import "xxx"
去加载现在发现这2个结合时,打包后的产物会把
@use xxx
打包进去。当不使用@import "xxx"
加载三方时,就没这个问题。Reproduce link
https://github.com/xuexb/rsbuild-codesandbox-example
Reproduce Steps
nvm use
pnpm install
pnpm build
cat dist/static/css/index.*.css
The text was updated successfully, but these errors were encountered: