vite-plugin-storybook-nextjs 3.0.3--canary.ca2a5b0.0 → 3.0.3--canary.68.b6ee25e.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.
@@ -2,7 +2,6 @@
2
2
 
3
3
  var module$1 = require('module');
4
4
  var moduleAlias = require('module-alias');
5
- var posix = require('path/posix');
6
5
 
7
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
8
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -1922,22 +1921,7 @@ var require_semver2 = __commonJS({
1922
1921
  var require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('storybook.global.cjs', document.baseURI).href)));
1923
1922
  var VITEST_PLUGIN_NAME = "vite-plugin-storybook-nextjs";
1924
1923
  process.env.VITEST === "true";
1925
- var getNextjsVersion = () => require2(scopedResolve("next/package.json")).version;
1926
- var scopedResolve = (id) => {
1927
- let scopedModulePath;
1928
- try {
1929
- scopedModulePath = require2.resolve(id, { paths: [posix.resolve()] });
1930
- } catch (e) {
1931
- scopedModulePath = require2.resolve(id);
1932
- }
1933
- const idWithNativePathSep = id.replace(/\//g, posix.sep);
1934
- if (scopedModulePath.endsWith(idWithNativePathSep)) {
1935
- return scopedModulePath;
1936
- }
1937
- const moduleFolderStrPosition = scopedModulePath.lastIndexOf(idWithNativePathSep);
1938
- const beginningOfMainScriptPath = moduleFolderStrPosition + id.length;
1939
- return scopedModulePath.substring(0, beginningOfMainScriptPath);
1940
- };
1924
+ var getNextjsVersion = () => require2("next/package.json").version;
1941
1925
 
1942
1926
  // src/plugins/next-image/alias/index.tsx
1943
1927
  var require3 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('storybook.global.cjs', document.baseURI).href)));
@@ -1,6 +1,5 @@
1
1
  import { createRequire } from 'module';
2
2
  import moduleAlias from 'module-alias';
3
- import { resolve, sep } from 'path/posix';
4
3
 
5
4
  var __create = Object.create;
6
5
  var __defProp = Object.defineProperty;
@@ -1915,22 +1914,7 @@ var require_semver2 = __commonJS({
1915
1914
  var require2 = createRequire(import.meta.url);
1916
1915
  var VITEST_PLUGIN_NAME = "vite-plugin-storybook-nextjs";
1917
1916
  process.env.VITEST === "true";
1918
- var getNextjsVersion = () => require2(scopedResolve("next/package.json")).version;
1919
- var scopedResolve = (id) => {
1920
- let scopedModulePath;
1921
- try {
1922
- scopedModulePath = require2.resolve(id, { paths: [resolve()] });
1923
- } catch (e) {
1924
- scopedModulePath = require2.resolve(id);
1925
- }
1926
- const idWithNativePathSep = id.replace(/\//g, sep);
1927
- if (scopedModulePath.endsWith(idWithNativePathSep)) {
1928
- return scopedModulePath;
1929
- }
1930
- const moduleFolderStrPosition = scopedModulePath.lastIndexOf(idWithNativePathSep);
1931
- const beginningOfMainScriptPath = moduleFolderStrPosition + id.length;
1932
- return scopedModulePath.substring(0, beginningOfMainScriptPath);
1933
- };
1917
+ var getNextjsVersion = () => require2("next/package.json").version;
1934
1918
 
1935
1919
  // src/plugins/next-image/alias/index.tsx
1936
1920
  var require3 = createRequire(import.meta.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-storybook-nextjs",
3
- "version": "3.0.3--canary.ca2a5b0.0",
3
+ "version": "3.0.3--canary.68.b6ee25e.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vite-plugin",
@@ -75,6 +75,7 @@
75
75
  "auto": "^11.2.0",
76
76
  "lefthook": "^1.6.16",
77
77
  "next": "16.0.0",
78
+ "pathe": "^2.0.3",
78
79
  "react": "19.2.0",
79
80
  "rollup": "^4.18.0",
80
81
  "semver": "^7.6.3",