output.sourceMap
- Type:
- Default:
When output.sourceMap is not configured, the source map generation rules of Modern.js are different from Rsbuild:
- In the development mode, JS and CSS source maps are generated for development debugging.
- In the production mode, JS source maps are generated for stack trace backtracking, and CSS source maps are not generated to provide the best build performance.
Info
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - output.sourceMap.