appendInlineSourceMap
Appends a source map to a module’s code as an inline sourceMappingURL comment, which is how a bundler that reads a loaded file’s own source map takes it.
Import:
import { appendInlineSourceMap } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-transforms';Signature:
function appendInlineSourceMap(module: TransformedModule): stringParameters:
| Parameter | Type | Description |
|---|---|---|
module |
TransformedModule | The module. |
Returns: string — The code, with the source map inlined when there is one.