vite-plugin-storybook-nextjs 1.0.11--canary.17.e19e563.0 → 1.0.11--canary.17.7a4e819.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -44,6 +44,18 @@ export default defineConfig({
44
44
  });
45
45
  ```
46
46
 
47
+ If you are using `@storybook/experimental-nextjs-vite` you don't have to install `vite-plugin-storybook-nextjs`, since `@storybook/experimental-nextjs-vite` already re-exports it.
48
+
49
+ ```ts
50
+ // vitest.config.ts
51
+ import { defineConfig } from "vite";
52
+ import { storybookNextJsPlugin } from "@storybook/experimental-nextjs-vite/vite-plugin";
53
+
54
+ export default defineConfig({
55
+ plugins: [storybookNextJsPlugin()],
56
+ });
57
+ ```
58
+
47
59
  ## Configuration Options
48
60
 
49
61
  You can configure the plugin using the following options:
@@ -68,7 +80,7 @@ This plugin is necessary to run portable stories in Vitest, as it provides the n
68
80
 
69
81
  (⚠️ **Experimental**)
70
82
 
71
- The experimental `@storybook/experimental-addon-vitest` can be used to automatically transform your stories at Vitest runtime to in-memory test files. This allows you to run your stories in a Vitest environment without needing to manually transform your stories. Please visit https://storybook.js.org/docs/8.3/writing-tests/test-runner-with-vitest for more information.
83
+ The experimental `@storybook/experimental-addon-test` can be used to automatically transform your stories at Vitest runtime to in-memory test files. This allows you to run your stories in a Vitest environment without needing to manually transform your stories. Please visit https://storybook.js.org/docs/8.3/writing-tests/test-runner-with-vitest for more information.
72
84
 
73
85
  ## Limitations and differences to the Webpack5-based integration of Next.js in Storybook
74
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-storybook-nextjs",
3
- "version": "1.0.11--canary.17.e19e563.0",
3
+ "version": "1.0.11--canary.17.7a4e819.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vite-plugin",