UNPKG

vite-plugin-storybook-nextjs

Version:

This is a Vite plugin that allows you to use Next.js features in Vite. It is the basis for `@storybook/experimental-nextjs-vite` and should be used when running portable stories in Vitest.

13 lines (10 loc) 308 B
import { Plugin } from 'vite'; type VitePluginOptions = { /** * Provide the path to your Next.js project directory * @default process.cwd() */ dir?: string; }; declare function VitePlugin({ dir, }?: VitePluginOptions): (Plugin | Promise<Plugin>)[]; export { VitePlugin as default };