3.0.0 • Published 1 year ago
@artalar/act-jsx v3.0.0
vite.config.js
import { defineConfig } from 'vite'
export default defineConfig({
esbuild: {
jsxFactory: 'h',
jsxFragment: 'hf',
jsxInject: `import { h, hf } from "@artalar/act-jsx";`,
},
})
tsconfig.json
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "@artalar/act-jsx"
},