Skip to content

RollupCompatibleFeaturePlugin

The plugin createRollupCompatibleFeaturePlugin creates, in the shape rollup and vite both accept.

Import:

import type { RollupCompatibleFeaturePlugin } from '@mnaoumov/obsidian-dev-toolkit/bundlers/rollup-compatible-features';

Signature:

export interface RollupCompatibleFeaturePlugin

Properties

PropertyTypeDescription
loadFeaturePluginHook<(this: FeaturePluginContext, id: string) => Promise<null | string>>Loads a .wasm module as its bytes.
namestringThe plugin's name.
transformFeaturePluginHook<(this: FeaturePluginContext, code: string, id: string) => Promise<null | TransformResultLike>>Compiles a module the features transform, then replaces the compile-time constants.

Links to this page: