sourcemap

Psourcemap
Bun

Symbol

BuildConfig.sourcemap

sourcemap?: boolean | 'external' | 'none' | 'linked' | 'inline'

Specifies if and how to generate source maps.

  • "none" - No source maps are generated
  • "linked" - A separate *.ext.map file is generated alongside each *.ext file. A //# sourceMappingURL comment is added to the output file to link the two. Requires outdir to be set.
  • "inline" - an inline source map is appended to the output file.
  • "external" - Generate a separate source map file for each input file. No //# sourceMappingURL comment is added to the output file.

true and false are aliases for "inline" and "none", respectively.