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.

12 lines (10 loc) 418 B
/** * This is a replacement for next/dist/compiled/safe-stable-stringify * * Because it is CJS and needs access to __dirname, which causes Storybook to break. * * Original file can be found here: * https://github.com/vercel/next.js/blob/canary/packages/next/src/compiled/safe-stable-stringify/index.js */ declare function safeStableStringify(value: unknown): string; export { safeStableStringify as default };