Search Docs
type SourceMap = | boolean | { js?: Rspack.Configuration['devtool']; css?: boolean; };
const defaultSourceMap = { js: isDev ? 'cheap-module-source-map' : false, css: false, };
Used to set whether to generate source map files, and which format of source map to generate.
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - output.sourceMap.