Skip to content

PreprocessPluginOptions

Options for preprocessPlugin.

Import:

import type { PreprocessPluginOptions } from '@mnaoumov/typescript-dev-toolkit/bundlers/esbuild-impl/preprocess-plugin';

Signature:

export interface PreprocessPluginOptions

Properties

PropertyTypeDescription
additionalBannerInitFunctions?readonly (() => void)[]Self-contained functions serialized into the banner after the shared shims, each invoked once.
cjsImportMetaUrlProvider?() => stringThe self-contained function whose result replaces import(dot)meta(dot)url in a CommonJS build. Serialized into every file that reads it.
isEsm?booleanWhether the build is for an ESM format.

Links to this page: