transformJsx
Compiles a React or Preact JSX or TSX module with the automatic JSX runtime, for a bundler that does not take the runtime from the project’s tsconfig (parcel does not follow its extends).
Import:
import { transformJsx } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-transforms';Signature:
function transformJsx(params: TransformJsxParams): Promise<TransformedModule>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
TransformJsxParams | The TransformJsxParams. |
Returns: Promise<TransformedModule> — A Promise that resolves to the compiled module.
Links to this page: