Home > @lynx-js/rspeedy > SourceMap > js
SourceMap.js property
How the source map should be generated. Setting it to false will disable the source map.
Signature:
Default Value
When output.sourceMap is an object and js is unset, it defaults to 'cheap-module-source-map' in development and false in production.
Remarks
See Rspack - Devtool for details.
Example 1
- Enable high-quality source-maps for production:
Example 2
- Disable source-map generation:
Example 3
- Use high-quality source-maps for all environments: