Skip to content

natsuneko-laboratory/vite-plugin-next-directives

Repository files navigation

@natsuneko-laboratory/vite-plugin-next-directives

Support use client/server directives in Vite

Installation

$ npm install @natsuneko-laboratory/vite-plugin-next-directives

Usage

Add directives() to your Vite configuration:

// vite.config.ts
import { defineConfig } from "vite";
import { directives } from "@natsuneko-laboratory/vite-plugin-next-directives";

export default defineConfig({
  plugins: [...directives()],
});

License

MIT by @6jz