Choose a style of source mapping to enhance the debugging process. Be aware that the following options can affect build and rebuild speed dramatically...
eval - Each module is executed with
source-map - A full SourceMap is emitted
hidden-source-map - Same as
source-map, but doesn't add a reference comment to the bundle
inline-source-map - A SourceMap is added as DataUrl to the bundle
eval-source-map - Each module is executed with
eval and a SourceMap is added as DataUrl to the
cheap-source-map - A SourceMap without column-mappings ignoring loaded source maps
cheap-module-source-map - A SourceMap without column-mappings that simplifies loaded source maps to a single mapping per line
|cheap-eval-source-map||+||++||no||transformed code (lines only)|
|cheap-source-map||+||o||yes||transformed code (lines only)|
|cheap-module-eval-source-map||o||++||no||original source (lines only)|
|cheap-module-source-map||o||-||yes||original source (lines only)|
output.sourceMapFilenameto customize the filenames of generated source maps.
todoThis section is pretty much just copied over from existing docs... imo more background is needed on the different types of source mapping, maybe via links to external sites that discuss the different types of source maps in more detail.