package
## Getting Started
npm install aslemammad-vite-plugin-macroGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
$ npm install -D vite-plugin-macro
# or
$ yarn add -D vite-plugin-macroFor more details, see documentation for typed-macro.
// vite.config.ts
import { defineConfig } from 'vite'
// a package or module that exports macro provider
import { provideEcho } from 'some-macro-provider'
import { createMacroPlugin } from 'vite-plugin-macro'
import { join } from 'path'
const macroPlugin = createMacroPlugin({
// the generated `.d.ts` file will include the types of macros
typesPath: join(__dirname, './macros.d.ts'),
}).use(provideEcho()) // use a macro provider
export default defineConfig({
plugins: [macroPlugin],
})This package also re-exports @typed-macro/core
so you can define macros directly in your projects.
Estimated unpacked size across 24 packages.
3.7 MB
Includes dependencies.
4 direct · 1 outdated
^3.5.2
6.0.0
1.0.0-alpha.1
1.0.0-alpha
1.0.0-alpha.1
1.0.0-alpha
1.0.0-alpha.1
1.0.0-alpha