You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

aslemammad-vite-plugin-macro

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aslemammad-vite-plugin-macro

## Getting Started

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-macro

Getting Started

$ npm install -D vite-plugin-macro
# or
$ yarn add -D vite-plugin-macro

Usage

For 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.

FAQs

Package last updated on 18 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts