Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
2
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc