Skip to content

fixSourceMapsPlugin

Creates an esbuild plugin that fixes source maps by adjusting the paths to be compatible with Obsidian’s internal URL scheme.

Import:

import { fixSourceMapsPlugin } from 'obsidian-dev-utils/script-utils/bundlers/esbuild-impl/fix-source-maps-plugin';

Signature:

function fixSourceMapsPlugin(params: FixSourceMapsPluginParams): Plugin

Parameters:

ParameterTypeDescription
paramsFixSourceMapsPluginParamsThe parameters for the function.

Returns: Plugin — An esbuild Plugin object that fixes source maps.


Links to this page: