Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 581 Bytes

File metadata and controls

30 lines (21 loc) · 581 Bytes

@twind/vite-plugin-jsx

A Vite plugin which adds JSX enhancements for Twind

Usage

  1. Install from npm:

    npm install -D @twind/vite-plugin-jsx
  2. Add to the plugins section of your vite config:

    import { defineConfig } from 'vite'
    import twindJsx from '@twind/vite-plugin-jsx'
    
    export default defineConfig({
      // other config ...
      plugins: [
        // other plugins ...
        twindJsx(),
      ],
    })

And you're done!