type SourceMap =
| boolean
| {
js?: Rspack.Configuration['devtool'];
css?: boolean;
};const defaultSourceMap = {
js: isDev ? 'cheap-module-source-map' : 'hidden-source-map',
css: isDev,
};When output.sourceMap is not configured, the source map generation rules of Modern.js are different from Rsbuild:
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - output.sourceMap.