0.0.8 • Published 2 years ago

vite-macros v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago