Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Oct 27, 2025

Summary

Use nosources-source-map instead of source-map to reduce source map size, since "sourcesContent" is unused in rstest.

https://rspack.rs/config/devtool#:~:text=nosources%2Dsource%2Dmap

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings October 27, 2025 10:53
@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 75b0dfc
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68ff4f2c19126100088a19e3
😎 Deploy Preview https://deploy-preview-650--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

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 optimizes source map generation by switching from source-map to nosources-source-map, which reduces source map file size by excluding the sourcesContent field that is unused in rstest.

Key Changes:

  • Updated default devtool configuration to use nosources-source-map instead of source-map
  • Applied the same optimization to inline source maps in the inspect plugin
  • Updated test snapshots to reflect the new devtool configuration

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
scripts/dictionary.txt Added 'nosources' to the dictionary for spell-checking
packages/core/tests/core/snapshots/rsbuild.test.ts.snap Updated test snapshots to expect nosources-source-map devtool value
packages/core/src/core/plugins/inspect.ts Changed inspect plugin to use inline-nosources-source-map
packages/core/src/core/plugins/basic.ts Added logic to set default devtool to nosources-source-map when not inline

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

@github-actions
Copy link

github-actions bot commented Oct 28, 2025

📝 Ran ecosystem CI: Open

suite result
rslib ✅ success
rsdoctor ✅ success
rsbuild ✅ success

@9aoy 9aoy merged commit b40080b into main Oct 28, 2025
17 checks passed
@9aoy 9aoy deleted the nosources-source-map branch October 28, 2025 03:24
@9aoy 9aoy mentioned this pull request Oct 29, 2025
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