vite-plugin-salad

0.0.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-salad

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

5.38 kB

Total Files

4

Last publish

Collaborators

  • cr3atable