transformSolid
Compiles a Solid JSX or TSX module: esbuild strips the TypeScript and keeps the JSX, then babel-preset-solid compiles the JSX into DOM expressions.
Import:
import { transformSolid } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-transforms';Signature:
function transformSolid(params: TransformModuleParams): Promise<TransformedModule>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
TransformModuleParams | The TransformModuleParams. |
Returns: Promise<TransformedModule> — A Promise that resolves to the compiled module.
Links to this page: