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 '@mnaoumov/typescript-dev-toolkit/bundlers/esbuild-impl/preprocess-plugin';

Signature:

function keepName($unknown: unknown): unknown

Parameters:

Parameter Type Description
$unknown unknown

Returns: unknown — The value passed in.