Skip to content

keepName

Returns its argument unchanged.

Serialized into the emitted banner, where it stands in for esbuild’s __name helper — which names a function and returns it — for bundles that reference the helper without emitting their own.

Import:

import { keepName } from 'obsidian-dev-utils/script-utils/bundlers/esbuild-impl/preprocess-plugin';

Signature:

function keepName($unknown: unknown): unknown

Parameters:

ParameterTypeDescription
$unknownunknown

Returns: unknown — The value passed in.