@storybook/builder-vite 10.2.0-alpha.0 → 10.2.0-alpha.10

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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_w9gen6fb3w from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w9gen6fb3w from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w9gen6fb3w from "node:module";
1
+ import CJS_COMPAT_NODE_URL_dwqb3s0313 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_dwqb3s0313 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_dwqb3s0313 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w9gen6fb3w.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w9gen6fb3w.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w9gen6fb3w.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_dwqb3s0313.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_dwqb3s0313.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_dwqb3s0313.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -32,7 +32,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  mod
33
33
  ));
34
34
 
35
- // ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
35
+ // ../../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
36
36
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
37
37
  function normalizeWindowsPath(input = "") {
38
38
  return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
@@ -44,6 +44,13 @@ var normalize = function(path2) {
44
44
  path2 = normalizeWindowsPath(path2);
45
45
  let isUNCPath = path2.match(_UNC_REGEX), isPathAbsolute = isAbsolute(path2), trailingSeparator = path2[path2.length - 1] === "/";
46
46
  return path2 = normalizeString(path2, !isPathAbsolute), path2.length === 0 ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path2 += "/"), _DRIVE_LETTER_RE.test(path2) && (path2 += "/"), isUNCPath ? isPathAbsolute ? `//${path2}` : `//./${path2}` : isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2);
47
+ }, join = function(...arguments_) {
48
+ if (arguments_.length === 0)
49
+ return ".";
50
+ let joined;
51
+ for (let argument of arguments_)
52
+ argument && argument.length > 0 && (joined === void 0 ? joined = argument : joined += `/${argument}`);
53
+ return joined === void 0 ? "." : normalize(joined.replace(/\/\/+/g, "/"));
47
54
  };
48
55
  function cwd() {
49
56
  return typeof process < "u" && typeof process.cwd == "function" ? process.cwd().replace(/\\/g, "/") : "/";
@@ -107,6 +114,7 @@ export {
107
114
  __commonJS,
108
115
  __toESM,
109
116
  normalize,
117
+ join,
110
118
  resolve,
111
119
  isAbsolute,
112
120
  relative