vite-macros
v0.0.8
Published
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href] [![License][license-src]][license-href] [![JSDocs][jsdocs-src]][jsdo
Downloads
13
Readme
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.