vite-plugin-salad
v0.0.7
Published
This package does transforms on `.s.html` files to convert them to JSX (or TSX potentially!) for use in SolidJS projects.
Downloads
5
Readme
vite-plugin-salad
This package does transforms on .s.html
files to convert them to JSX (or TSX potentially!) for use in SolidJS projects.
Usage
Install vite-plugin-solid
using the steps listed here.
Install @uwu/salad
as a dev dependency (whichever version you prefer).
Then install vite-plugin-salad
as a dev dependency.
# with npm
$ npm install -D vite-plugin-salad
# with pnpm
$ pnpm add -D vite-plugin-salad
# with yarn
$ yarn add -D vite-plugin-salad
Add it as a plugin to vite.config.js
// vite.config.js
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import saladPlugin from 'vite-plugin-salad';
export default defineConfig({
plugins: [solidPlugin(), saladPlugin()],
});
You can now import .s.html
components in your Solid app.