vite-plugin-storybook-nextjs 1.1.4--canary.36.0ae4f28.0 → 1.1.4

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.
package/dist/index.cjs CHANGED
@@ -2855,13 +2855,6 @@ var loadConfig = (
2855
2855
  function VitePlugin({ dir = process.cwd() } = {}) {
2856
2856
  const resolvedDir = path2.resolve(dir);
2857
2857
  const nextConfigResolver = Promise.withResolvers();
2858
- let styledJsxIsInstalled;
2859
- try {
2860
- require8.resolve("styled-jsx");
2861
- styledJsxIsInstalled = true;
2862
- } catch (e) {
2863
- styledJsxIsInstalled = false;
2864
- }
2865
2858
  return [
2866
2859
  {
2867
2860
  name: "vite-plugin-storybook-nextjs",
@@ -2935,7 +2928,10 @@ function VitePlugin({ dir = process.cwd() } = {}) {
2935
2928
  "next/image",
2936
2929
  "next/legacy/image",
2937
2930
  "react/jsx-dev-runtime",
2938
- ...styledJsxIsInstalled ? ["styled-jsx/style"] : []
2931
+ // Required for pnpm setups, since styled-jsx is a transitive dependency of Next.js and not directly listed.
2932
+ // Refer to this pnpm issue for more details:
2933
+ // https://github.com/vitejs/vite/issues/16293
2934
+ "next > styled-jsx/style"
2939
2935
  ]
2940
2936
  },
2941
2937
  test: {
package/dist/index.js CHANGED
@@ -2822,13 +2822,6 @@ var loadConfig = (
2822
2822
  function VitePlugin({ dir = process.cwd() } = {}) {
2823
2823
  const resolvedDir = resolve(dir);
2824
2824
  const nextConfigResolver = Promise.withResolvers();
2825
- let styledJsxIsInstalled;
2826
- try {
2827
- require8.resolve("styled-jsx");
2828
- styledJsxIsInstalled = true;
2829
- } catch (e) {
2830
- styledJsxIsInstalled = false;
2831
- }
2832
2825
  return [
2833
2826
  {
2834
2827
  name: "vite-plugin-storybook-nextjs",
@@ -2902,7 +2895,10 @@ function VitePlugin({ dir = process.cwd() } = {}) {
2902
2895
  "next/image",
2903
2896
  "next/legacy/image",
2904
2897
  "react/jsx-dev-runtime",
2905
- ...styledJsxIsInstalled ? ["styled-jsx/style"] : []
2898
+ // Required for pnpm setups, since styled-jsx is a transitive dependency of Next.js and not directly listed.
2899
+ // Refer to this pnpm issue for more details:
2900
+ // https://github.com/vitejs/vite/issues/16293
2901
+ "next > styled-jsx/style"
2906
2902
  ]
2907
2903
  },
2908
2904
  test: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-storybook-nextjs",
3
- "version": "1.1.4--canary.36.0ae4f28.0",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vite-plugin",