Skip to content

addIgnoreList

Returns a copy of a full source map with every source that isSourceIgnored accepts listed in ignoreList.

Import:

import { addIgnoreList } from '@mnaoumov/obsidian-dev-toolkit/bundlers/esbuild-impl/ignore-list-source-map-plugin';

Signature:

function addIgnoreList(sourceMap: SourceMap, isSourceIgnored: (source: string) => boolean): SourceMap

Parameters:

Parameter Type Description
sourceMap SourceMap The full source map.
isSourceIgnored (source: string) => boolean Tells whether a source is ignore-listed.

Returns: SourceMap — The source map with its ignoreList set.