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 '@mnaoumov/obsidian-dev-toolkit/bundlers/esbuild-impl/fix-source-maps-plugin';

Signature:

function fixSourceMapsPlugin(params: FixSourceMapsPluginParams): Plugin

Parameters:

Parameter Type Description
params FixSourceMapsPluginParams The parameters for the function.

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


Links to this page: