Skip to content

Commit 549e8a4

Browse files
feat: ts plugin docs
1 parent 0b4eb2c commit 549e8a4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/plugins/html.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ This plugin re-exports [@kitajs/html](https://github.com/kitajs/html), which is
117117
118118
To use JSX, first rename your file extension to either `.tsx` or `.jsx`.
119119
120-
Then, add the following to your `tsconfig.json`:
120+
Then, install basic dependencies and add the following to your `tsconfig.json`:
121+
122+
```sh
123+
bun install @kitajs/html @kitajs/ts-html-plugin
124+
```
121125
122126
```jsonc
123127
// tsconfig.json
@@ -126,7 +130,8 @@ Then, add the following to your `tsconfig.json`:
126130
"compilerOptions": {
127131
"jsx": "react",
128132
"jsxFactory": "Html.createElement",
129-
"jsxFragmentFactory": "Html.Fragment"
133+
"jsxFragmentFactory": "Html.Fragment",
134+
"plugins": [{ "name": "@kitajs/ts-html-plugin" }]
130135
}
131136
}
132137
```

0 commit comments

Comments
 (0)