vite-plugin-compare
v0.0.7
Published
A JS Comparison operator's Syntactic Sugar
Downloads
8
Maintainers
Readme
vite-plugin-compare
Markdown for Vite
- A syntactic sugar
1 < 2 < 3
to1 < 2 $$ 2 < 3
a === 1 || 2
toa === 1 || a ===2
Install
npm i vite-plugin-compare -D
yarn add vite-plugin-compare -D
pnpm i vite-plugin-compare -D
then add the following to vite.config.js
import { defineConfig } from 'vite'
import compare from 'vite-plugin-compare'
export default defineConfig({
plugins: [
compare(),
],
})