File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,11 @@ This plugin re-exports [@kitajs/html](https://github.com/kitajs/html), which is
117
117
118
118
To use JSX, first rename your file extension to either ` .tsx ` or ` .jsx ` .
119
119
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
+ ` ` `
121
125
122
126
` ` ` jsonc
123
127
// tsconfig.json
@@ -126,7 +130,8 @@ Then, add the following to your `tsconfig.json`:
126
130
" compilerOptions" : {
127
131
" jsx" : " react" ,
128
132
" jsxFactory" : " Html.createElement" ,
129
- " jsxFragmentFactory" : " Html.Fragment"
133
+ " jsxFragmentFactory" : " Html.Fragment" ,
134
+ " plugins" : [{ " name" : " @kitajs/ts-html-plugin" }]
130
135
}
131
136
}
132
137
` ` `
You can’t perform that action at this time.
0 commit comments