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 RollupCompatibleFeaturePluginProperties
| Property | Type | Description |
|---|---|---|
| load | FeaturePluginHook<(this: FeaturePluginContext, id: string) => Promise<null | string>> | Loads a .wasm module as its bytes. |
| name | string | The plugin's name. |
| transform | FeaturePluginHook<(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: