Skip to content

Conversation

@SyMind
Copy link
Member

@SyMind SyMind commented Jan 26, 2026

Summary

In production, it’s expected that no source map file is emitted when using the cheap modifier (e.g. cheap-source-map).

This is because cheap only provides line-level mappings, while production builds are typically minified into a single line. In that case, a source map has little practical value.

Related links

Checklist

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

Copilot AI review requested due to automatic review settings January 26, 2026 11:02
@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: document release: document related release(mr only) labels Jan 26, 2026
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 26, 2026

Deploying rspack with  Cloudflare Pages  Cloudflare Pages

Latest commit: 99972c8
Status: ✅  Deploy successful!
Preview URL: https://925e670c.rspack-v2.pages.dev
Branch Preview URL: https://improve-devtool-docs.rspack-v2.pages.dev

View logs

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 adds a FAQ tip to the devtool documentation explaining the behavior of cheap source map modifiers in production environments. The documentation is updated in both English and Chinese versions.

Changes:

  • Added an FAQ tip section explaining that cheap source maps don't emit files in production due to line-level mapping limitations with minified code

Reviewed changes

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

File Description
website/docs/en/config/devtool.mdx Added FAQ tip about cheap source maps in production (English)
website/docs/zh/config/devtool.mdx Added FAQ tip about cheap source maps in production (Chinese)

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

@chenjiahan chenjiahan merged commit b02d64d into main Jan 26, 2026
24 checks passed
@chenjiahan chenjiahan deleted the improve-devtool-docs branch January 26, 2026 11:15
@chenjiahan chenjiahan changed the title docs: devtool tip for cheap in production no emit source map docs: add tip for devtool's cheap modifier in production build Jan 26, 2026
Copilot AI pushed a commit that referenced this pull request Jan 26, 2026
* docs: tip for cheap in production not emit source map

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

Labels

release: document release: document related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants