0.0.8 • Published 10 months ago
vite-macros v0.0.8
vite-macros
This is my package description.
Usage
Install package:
# npm
npm install vite-macros
# yarn
yarn add vite-macros
# pnpm
pnpm install vite-macros
Import:
import { defineConfig } from 'vite'
import ViteMacros from "vite-macros";
export default defineConfig({
plugins: [
ViteMacros()
],
})
Typescript:
// tsconfig.json
{
"compilerOptions": {
"types": ["vite-macros/types"]
}
}
Usage:
const data = include_str!('data.json');
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
License
Made with 💛
Published under MIT License.