CreateRollupCompatibleFeaturePluginParams
Parameters for createRollupCompatibleFeaturePlugin.
Import:
import type { CreateRollupCompatibleFeaturePluginParams } from '@mnaoumov/obsidian-dev-toolkit/bundlers/rollup-compatible-features';Signature:
export interface CreateRollupCompatibleFeaturePluginParamsProperties
| Property | Type | Description |
|---|---|---|
| features | ObsidianPluginFeatureOptions | The build features. |
| isProductionBuild | () => boolean | Tells whether the build is a production one. Called from the hooks, after the adapter resolved its build mode. |
| shouldCompileStylesheets | boolean | Whether this plugin compiles stylesheets. Vite compiles them itself. |
| shouldReplaceDefines | boolean | Whether this plugin replaces the framework's compile-time constants in the code. Vite does it through its own define. |
Links to this page: