Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Ensure the sources are relative paths when disabling JS source maps and enabling CSS source maps.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings October 28, 2025 09:47
@netlify
Copy link

netlify bot commented Oct 28, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 1cd7ff5
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6900914c78fc260008450472
😎 Deploy Preview https://deploy-preview-6458--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 64 (🟢 up 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@chenjiahan chenjiahan marked this pull request as draft October 28, 2025 09:47
@chenjiahan chenjiahan changed the title fix(source-map): correct CSS source map sources fix(source-map): correct sources in CSS source map Oct 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes CSS source map generation to ensure sources contain relative paths when JS source maps are disabled and CSS source maps are enabled. The fix applies the same moduleFilenameTemplate configuration used for JS source maps to CSS source maps as well.

Key Changes:

  • Added moduleFilenameTemplate configuration to CSS source map settings
  • Added test to verify CSS source map sources field contains correct relative paths

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/core/src/plugins/sourceMap.ts Applied moduleFilenameTemplate to CSS source map configuration
e2e/cases/source-map/basic/index.test.ts Added test coverage for CSS source map structure and relative path verification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants