Native JSX compiler for Solid.js users built with the OXC toolchain.
Very work in progress, but I encourage you to try it out and report issues!
# compiler
npm install @oxc-solid-js/compiler
# vite plugin
npm install -D @oxc-solid-js/vite
# rolldown plugin
npm install -D @oxc-solid-js/rolldown// vite.config.jsimport{defineConfig}from"vite";importsolidOxcfrom"@oxc-solid-js/vite";exportdefaultdefineConfig({plugins: [solidOxc()],});Options:
solidOxc({generate: "dom",// "dom" | "ssr" | "universal"hydratable: false,hot: true,// HMR via solid-refresh (dev only)});// rolldown.config.jsimportsolidOxcfrom"@oxc-solid-js/rolldown";exportdefault{plugins: [solidOxc()],};import{transformJsx}from"@oxc-solid-js/compiler";const{ code, map }=transformJsx(`<div class="hello">world</div>`,{generate: "dom",moduleName: "solid-js/web",sourceMap: true,});This project is licensed under the MIT License.
This project also contains code derived or copied from the following projects:
Licenses of these projects are listed in THIRD-PARTY-LICENSES.