Skip to content
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

[Bug]: output.sourceMap.css: true does not take effect #4397

Open
Timeless0911 opened this issue Jan 20, 2025 · 0 comments
Open

[Bug]: output.sourceMap.css: true does not take effect #4397

Timeless0911 opened this issue Jan 20, 2025 · 0 comments

Comments

@Timeless0911
Copy link
Contributor

Timeless0911 commented Jan 20, 2025

Version

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 701.70 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 131.0.6778.265
    Safari: 17.6
  npmPackages:
    @rsbuild/core: ^1.1.8 => 1.1.13 
    @rsbuild/plugin-react: ^1.0.7 => 1.1.0

Details

output.sourceMap.css: true does not take effect when output.sourceMap.js: false.

When I configure output.sourceMap.js with values like cheap-source-map, it works well.

Reproduce link

basic react demo

Reproduce Steps

  1. Create a basic React project via npm create rsbuild@latest
  2. Add configuration like:
import { defineConfig } from "@rsbuild/core";
import { pluginReact } from "@rsbuild/plugin-react";

export default defineConfig({
+  output: {
+   sourceMap: {
+      css: true,
+    },
+ },
  plugins: [pluginReact()],
});
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

1 participant