getJsxImportSource
Tells which package supplies the automatic JSX runtime of a framework.
Import:
import { getJsxImportSource } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-features';Signature:
function getJsxImportSource(framework: ObsidianPluginFramework | undefined): "preact" | "react" | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
framework |
ObsidianPluginFramework | undefined | The UI framework, if any. |
Returns: “preact” | “react” | undefined — react or preact, or undefined for a framework that does not compile JSX with the automatic runtime.