KABBOUCHI / vite-macros

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-macros

npm version npm downloads bundle Codecov License JSDocs

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.

About

License:MIT License


Languages

Language:TypeScript 100.0%