@storybook/builder-vite 10.2.0-alpha.7 → 10.2.0-alpha.9
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/_node-chunks/{chunk-LDSE2VYQ.js → chunk-TYXEY6D3.js} +14 -6
- package/dist/index.js +192 -5192
- package/dist/preset.js +7 -7
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_fa718ajr7bp from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_fa718ajr7bp from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_fa718ajr7bp from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_fa718ajr7bp.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_fa718ajr7bp.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_fa718ajr7bp.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -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
|