Skip to content

CreateRollupCompatibleFeaturePluginParams

Parameters for createRollupCompatibleFeaturePlugin.

Import:

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

Signature:

export interface CreateRollupCompatibleFeaturePluginParams

Properties

PropertyTypeDescription
featuresObsidianPluginFeatureOptionsThe build features.
isProductionBuild() => booleanTells whether the build is a production one. Called from the hooks, after the adapter resolved its build mode.
shouldCompileStylesheetsbooleanWhether this plugin compiles stylesheets. Vite compiles them itself.
shouldReplaceDefinesbooleanWhether this plugin replaces the framework's compile-time constants in the code. Vite does it through its own define.

Links to this page: