@storybook/builder-vite 10.0.6 → 10.0.8
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.js +103 -195
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xdfx8yoyvcj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xdfx8yoyvcj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xdfx8yoyvcj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xdfx8yoyvcj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xdfx8yoyvcj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xdfx8yoyvcj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1577,7 +1577,6 @@ var kTypes = /* @__PURE__ */ new Set([
|
|
|
1577
1577
|
"function",
|
|
1578
1578
|
"number",
|
|
1579
1579
|
"object",
|
|
1580
|
-
// Accept 'Function' and 'Object' as alternative to the lower cased version.
|
|
1581
1580
|
"Function",
|
|
1582
1581
|
"Object",
|
|
1583
1582
|
"boolean",
|
|
@@ -1604,8 +1603,6 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
1604
1603
|
if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;
|
|
1605
1604
|
const message = getMessage(key, parameters, error);
|
|
1606
1605
|
Object.defineProperties(error, {
|
|
1607
|
-
// Note: no need to implement `kIsNodeError` symbol, would be hard,
|
|
1608
|
-
// probably.
|
|
1609
1606
|
message: {
|
|
1610
1607
|
value: message,
|
|
1611
1608
|
enumerable: false,
|
|
@@ -1613,7 +1610,6 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
1613
1610
|
configurable: true
|
|
1614
1611
|
},
|
|
1615
1612
|
toString: {
|
|
1616
|
-
/** @this {Error} */
|
|
1617
1613
|
value() {
|
|
1618
1614
|
return `${this.name} [${key}]: ${this.message}`;
|
|
1619
1615
|
},
|
|
@@ -1630,15 +1626,11 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
1630
1626
|
__name(makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
1631
1627
|
function isErrorStackTraceLimitWritable() {
|
|
1632
1628
|
try {
|
|
1633
|
-
if (v8.startupSnapshot.isBuildingSnapshot())
|
|
1634
|
-
return false;
|
|
1635
|
-
}
|
|
1629
|
+
if (v8.startupSnapshot.isBuildingSnapshot()) return false;
|
|
1636
1630
|
} catch {
|
|
1637
1631
|
}
|
|
1638
1632
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
1639
|
-
if (desc === void 0)
|
|
1640
|
-
return Object.isExtensible(Error);
|
|
1641
|
-
}
|
|
1633
|
+
if (desc === void 0) return Object.isExtensible(Error);
|
|
1642
1634
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
1643
1635
|
}
|
|
1644
1636
|
__name(isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
@@ -1660,219 +1652,135 @@ var captureLargerStackTrace = hideStackFrames(function(error) {
|
|
|
1660
1652
|
});
|
|
1661
1653
|
function getMessage(key, parameters, self) {
|
|
1662
1654
|
const message = messages.get(key);
|
|
1663
|
-
assert(message !== void 0, "expected `message` to be found");
|
|
1655
|
+
assert.ok(message !== void 0, "expected `message` to be found");
|
|
1664
1656
|
if (typeof message === "function") {
|
|
1665
|
-
assert(
|
|
1666
|
-
message.length <= parameters.length,
|
|
1667
|
-
// Default options do not count.
|
|
1668
|
-
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
|
|
1669
|
-
);
|
|
1657
|
+
assert.ok(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
|
|
1670
1658
|
return Reflect.apply(message, self, parameters);
|
|
1671
1659
|
}
|
|
1672
1660
|
const regex = /%[dfijoOs]/g;
|
|
1673
1661
|
let expectedLength = 0;
|
|
1674
1662
|
while (regex.exec(message) !== null) expectedLength++;
|
|
1675
|
-
assert(
|
|
1676
|
-
expectedLength === parameters.length,
|
|
1677
|
-
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
|
|
1678
|
-
);
|
|
1663
|
+
assert.ok(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
|
|
1679
1664
|
if (parameters.length === 0) return message;
|
|
1680
1665
|
parameters.unshift(message);
|
|
1681
1666
|
return Reflect.apply(format, null, parameters);
|
|
1682
1667
|
}
|
|
1683
1668
|
__name(getMessage, "getMessage");
|
|
1684
1669
|
function determineSpecificType(value) {
|
|
1685
|
-
if (value === null || value === void 0)
|
|
1686
|
-
|
|
1687
|
-
}
|
|
1688
|
-
if (typeof value === "function" && value.name) {
|
|
1689
|
-
return `function ${value.name}`;
|
|
1690
|
-
}
|
|
1670
|
+
if (value === null || value === void 0) return String(value);
|
|
1671
|
+
if (typeof value === "function" && value.name) return `function ${value.name}`;
|
|
1691
1672
|
if (typeof value === "object") {
|
|
1692
|
-
if (value.constructor && value.constructor.name) {
|
|
1693
|
-
return `an instance of ${value.constructor.name}`;
|
|
1694
|
-
}
|
|
1673
|
+
if (value.constructor && value.constructor.name) return `an instance of ${value.constructor.name}`;
|
|
1695
1674
|
return `${inspect(value, { depth: -1 })}`;
|
|
1696
1675
|
}
|
|
1697
1676
|
let inspected = inspect(value, { colors: false });
|
|
1698
|
-
if (inspected.length > 28) {
|
|
1699
|
-
inspected = `${inspected.slice(0, 25)}...`;
|
|
1700
|
-
}
|
|
1677
|
+
if (inspected.length > 28) inspected = `${inspected.slice(0, 25)}...`;
|
|
1701
1678
|
return `type ${typeof value} (${inspected})`;
|
|
1702
1679
|
}
|
|
1703
1680
|
__name(determineSpecificType, "determineSpecificType");
|
|
1704
|
-
createError(
|
|
1705
|
-
"
|
|
1706
|
-
(
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
types2,
|
|
1749
|
-
"or"
|
|
1750
|
-
)}`;
|
|
1751
|
-
if (instances.length > 0 || other.length > 0) message += " or ";
|
|
1752
|
-
}
|
|
1753
|
-
if (instances.length > 0) {
|
|
1754
|
-
message += `an instance of ${formatList(instances, "or")}`;
|
|
1755
|
-
if (other.length > 0) message += " or ";
|
|
1756
|
-
}
|
|
1757
|
-
if (other.length > 0) {
|
|
1758
|
-
if (other.length > 1) {
|
|
1759
|
-
message += `one of ${formatList(other, "or")}`;
|
|
1760
|
-
} else {
|
|
1761
|
-
if (other[0]?.toLowerCase() !== other[0]) message += "an ";
|
|
1762
|
-
message += `${other[0]}`;
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
message += `. Received ${determineSpecificType(actual)}`;
|
|
1766
|
-
return message;
|
|
1767
|
-
},
|
|
1768
|
-
TypeError
|
|
1769
|
-
);
|
|
1681
|
+
var ERR_INVALID_ARG_TYPE = createError("ERR_INVALID_ARG_TYPE", (name, expected, actual) => {
|
|
1682
|
+
assert.ok(typeof name === "string", "'name' must be a string");
|
|
1683
|
+
if (!Array.isArray(expected)) expected = [expected];
|
|
1684
|
+
let message = "The ";
|
|
1685
|
+
if (name.endsWith(" argument")) message += `${name} `;
|
|
1686
|
+
else {
|
|
1687
|
+
const type = name.includes(".") ? "property" : "argument";
|
|
1688
|
+
message += `"${name}" ${type} `;
|
|
1689
|
+
}
|
|
1690
|
+
message += "must be ";
|
|
1691
|
+
const types2 = [];
|
|
1692
|
+
const instances = [];
|
|
1693
|
+
const other = [];
|
|
1694
|
+
for (const value of expected) {
|
|
1695
|
+
assert.ok(typeof value === "string", "All expected entries have to be of type string");
|
|
1696
|
+
if (kTypes.has(value)) types2.push(value.toLowerCase());
|
|
1697
|
+
else if (classRegExp.exec(value) === null) {
|
|
1698
|
+
assert.ok(value !== "object", 'The value "object" should be written as "Object"');
|
|
1699
|
+
other.push(value);
|
|
1700
|
+
} else instances.push(value);
|
|
1701
|
+
}
|
|
1702
|
+
if (instances.length > 0) {
|
|
1703
|
+
const pos = types2.indexOf("object");
|
|
1704
|
+
if (pos !== -1) {
|
|
1705
|
+
types2.slice(pos, 1);
|
|
1706
|
+
instances.push("Object");
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
if (types2.length > 0) {
|
|
1710
|
+
message += `${types2.length > 1 ? "one of type" : "of type"} ${formatList(types2, "or")}`;
|
|
1711
|
+
if (instances.length > 0 || other.length > 0) message += " or ";
|
|
1712
|
+
}
|
|
1713
|
+
if (instances.length > 0) {
|
|
1714
|
+
message += `an instance of ${formatList(instances, "or")}`;
|
|
1715
|
+
if (other.length > 0) message += " or ";
|
|
1716
|
+
}
|
|
1717
|
+
if (other.length > 0) if (other.length > 1) message += `one of ${formatList(other, "or")}`;
|
|
1718
|
+
else {
|
|
1719
|
+
if (other[0]?.toLowerCase() !== other[0]) message += "an ";
|
|
1720
|
+
message += `${other[0]}`;
|
|
1721
|
+
}
|
|
1722
|
+
message += `. Received ${determineSpecificType(actual)}`;
|
|
1723
|
+
return message;
|
|
1724
|
+
}, TypeError);
|
|
1770
1725
|
var ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
1771
1726
|
"ERR_INVALID_MODULE_SPECIFIER",
|
|
1772
1727
|
/**
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1728
|
+
* @param {string} request
|
|
1729
|
+
* @param {string} reason
|
|
1730
|
+
* @param {string} [base]
|
|
1731
|
+
*/
|
|
1777
1732
|
(request, reason, base) => {
|
|
1778
1733
|
return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`;
|
|
1779
1734
|
},
|
|
1780
1735
|
TypeError
|
|
1781
1736
|
);
|
|
1782
|
-
var ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
1783
|
-
"
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
);
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
(
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
},
|
|
1801
|
-
Error
|
|
1802
|
-
);
|
|
1803
|
-
var ERR_MODULE_NOT_FOUND = createError(
|
|
1804
|
-
"ERR_MODULE_NOT_FOUND",
|
|
1805
|
-
(path3, base, exactUrl = false) => {
|
|
1806
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${path3}' imported from ${base}`;
|
|
1807
|
-
},
|
|
1808
|
-
Error
|
|
1809
|
-
);
|
|
1810
|
-
createError(
|
|
1811
|
-
"ERR_NETWORK_IMPORT_DISALLOWED",
|
|
1812
|
-
"import of '%s' by %s is not supported: %s",
|
|
1813
|
-
Error
|
|
1814
|
-
);
|
|
1815
|
-
var ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
|
|
1816
|
-
"ERR_PACKAGE_IMPORT_NOT_DEFINED",
|
|
1817
|
-
(specifier, packagePath, base) => {
|
|
1818
|
-
return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath || ""}package.json` : ""} imported from ${base}`;
|
|
1819
|
-
},
|
|
1820
|
-
TypeError
|
|
1821
|
-
);
|
|
1737
|
+
var ERR_INVALID_PACKAGE_CONFIG = createError("ERR_INVALID_PACKAGE_CONFIG", (path$1, base, message) => {
|
|
1738
|
+
return `Invalid package config ${path$1}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
1739
|
+
}, Error);
|
|
1740
|
+
var ERR_INVALID_PACKAGE_TARGET = createError("ERR_INVALID_PACKAGE_TARGET", (packagePath, key, target, isImport = false, base) => {
|
|
1741
|
+
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
1742
|
+
if (key === ".") {
|
|
1743
|
+
assert.ok(isImport === false);
|
|
1744
|
+
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
1745
|
+
}
|
|
1746
|
+
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
1747
|
+
}, Error);
|
|
1748
|
+
var ERR_MODULE_NOT_FOUND = createError("ERR_MODULE_NOT_FOUND", (path$1, base, exactUrl = false) => {
|
|
1749
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path$1}' imported from ${base}`;
|
|
1750
|
+
}, Error);
|
|
1751
|
+
var ERR_NETWORK_IMPORT_DISALLOWED = createError("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error);
|
|
1752
|
+
var ERR_PACKAGE_IMPORT_NOT_DEFINED = createError("ERR_PACKAGE_IMPORT_NOT_DEFINED", (specifier, packagePath, base) => {
|
|
1753
|
+
return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath || ""}package.json` : ""} imported from ${base}`;
|
|
1754
|
+
}, TypeError);
|
|
1822
1755
|
var ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
1823
1756
|
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
1824
1757
|
/**
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1758
|
+
* @param {string} packagePath
|
|
1759
|
+
* @param {string} subpath
|
|
1760
|
+
* @param {string} [base]
|
|
1761
|
+
*/
|
|
1829
1762
|
(packagePath, subpath, base) => {
|
|
1830
|
-
if (subpath === ".")
|
|
1831
|
-
return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
1763
|
+
if (subpath === ".") return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
1832
1764
|
return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
1833
1765
|
},
|
|
1834
1766
|
Error
|
|
1835
1767
|
);
|
|
1836
|
-
var ERR_UNSUPPORTED_DIR_IMPORT = createError(
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
);
|
|
1841
|
-
var
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
);
|
|
1846
|
-
var ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
1847
|
-
"ERR_UNKNOWN_FILE_EXTENSION",
|
|
1848
|
-
(extension, path3) => {
|
|
1849
|
-
return `Unknown file extension "${extension}" for ${path3}`;
|
|
1850
|
-
},
|
|
1851
|
-
TypeError
|
|
1852
|
-
);
|
|
1853
|
-
createError(
|
|
1854
|
-
"ERR_INVALID_ARG_VALUE",
|
|
1855
|
-
(name, value, reason = "is invalid") => {
|
|
1856
|
-
let inspected = inspect(value);
|
|
1857
|
-
if (inspected.length > 128) {
|
|
1858
|
-
inspected = `${inspected.slice(0, 128)}...`;
|
|
1859
|
-
}
|
|
1860
|
-
const type = name.includes(".") ? "property" : "argument";
|
|
1861
|
-
return `The ${type} '${name}' ${reason}. Received ${inspected}`;
|
|
1862
|
-
},
|
|
1863
|
-
TypeError
|
|
1864
|
-
// Note: extra classes have been shaken out.
|
|
1865
|
-
// , RangeError
|
|
1866
|
-
);
|
|
1768
|
+
var ERR_UNSUPPORTED_DIR_IMPORT = createError("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error);
|
|
1769
|
+
var ERR_UNSUPPORTED_RESOLVE_REQUEST = createError("ERR_UNSUPPORTED_RESOLVE_REQUEST", 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.', TypeError);
|
|
1770
|
+
var ERR_UNKNOWN_FILE_EXTENSION = createError("ERR_UNKNOWN_FILE_EXTENSION", (extension, path$1) => {
|
|
1771
|
+
return `Unknown file extension "${extension}" for ${path$1}`;
|
|
1772
|
+
}, TypeError);
|
|
1773
|
+
var ERR_INVALID_ARG_VALUE = createError("ERR_INVALID_ARG_VALUE", (name, value, reason = "is invalid") => {
|
|
1774
|
+
let inspected = inspect(value);
|
|
1775
|
+
if (inspected.length > 128) inspected = `${inspected.slice(0, 128)}...`;
|
|
1776
|
+
return `The ${name.includes(".") ? "property" : "argument"} '${name}' ${reason}. Received ${inspected}`;
|
|
1777
|
+
}, TypeError);
|
|
1867
1778
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
1868
1779
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
1869
1780
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
1870
1781
|
var own = {}.hasOwnProperty;
|
|
1871
1782
|
var isWindows = (() => process.platform === "win32")();
|
|
1872
|
-
var globalCache = (() => (
|
|
1873
|
-
// eslint-disable-next-line unicorn/no-unreadable-iife
|
|
1874
|
-
globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map()
|
|
1875
|
-
))();
|
|
1783
|
+
var globalCache = (() => globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map())();
|
|
1876
1784
|
|
|
1877
1785
|
// ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
1878
1786
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -2112,6 +2020,7 @@ var reservedNames = /* @__PURE__ */ new Set([
|
|
|
2112
2020
|
"with",
|
|
2113
2021
|
"yield"
|
|
2114
2022
|
]);
|
|
2023
|
+
var VALID_IDENTIFIER_RE = /^[$_]?([A-Z_a-z]\w*|\d)$/;
|
|
2115
2024
|
function _genStatement(type, specifier, names, options = {}) {
|
|
2116
2025
|
const specifierString = genString(specifier, options);
|
|
2117
2026
|
if (!names) {
|
|
@@ -2160,12 +2069,12 @@ __name(genImport, "genImport");
|
|
|
2160
2069
|
function genDynamicImport(specifier, options = {}) {
|
|
2161
2070
|
const commentString = options.comment ? ` /* ${options.comment} */` : "";
|
|
2162
2071
|
const wrapperString = options.wrapper === false ? "" : "() => ";
|
|
2163
|
-
const
|
|
2072
|
+
const interopString = options.interopDefault ? ".then(m => m.default || m)" : "";
|
|
2164
2073
|
const optionsString = _genDynamicImportAttributes(options);
|
|
2165
2074
|
return `${wrapperString}import(${genString(
|
|
2166
2075
|
specifier,
|
|
2167
2076
|
options
|
|
2168
|
-
)}${commentString}${optionsString})${
|
|
2077
|
+
)}${commentString}${optionsString})${interopString}`;
|
|
2169
2078
|
}
|
|
2170
2079
|
__name(genDynamicImport, "genDynamicImport");
|
|
2171
2080
|
function _genDynamicImportAttributes(options = {}) {
|
|
@@ -2188,7 +2097,6 @@ function wrapInDelimiters(lines, indent = "", delimiters = "{}", withComma = tru
|
|
|
2188
2097
|
${indent}${end}`;
|
|
2189
2098
|
}
|
|
2190
2099
|
__name(wrapInDelimiters, "wrapInDelimiters");
|
|
2191
|
-
var VALID_IDENTIFIER_RE = /^[$_]?([A-Z_a-z]\w*|\d)$/;
|
|
2192
2100
|
function genObjectKey(key) {
|
|
2193
2101
|
return VALID_IDENTIFIER_RE.test(key) ? key : genString(key);
|
|
2194
2102
|
}
|
|
@@ -3589,7 +3497,7 @@ minimatch.unescape = unescape2;
|
|
|
3589
3497
|
// ../../node_modules/glob/dist/esm/glob.js
|
|
3590
3498
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
3591
3499
|
|
|
3592
|
-
// ../../node_modules/lru-cache/dist/esm/index.js
|
|
3500
|
+
// ../../node_modules/glob/node_modules/lru-cache/dist/esm/index.js
|
|
3593
3501
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
3594
3502
|
var warned2 = /* @__PURE__ */ new Set();
|
|
3595
3503
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
@@ -4973,7 +4881,7 @@ var LRUCache = class _LRUCache {
|
|
|
4973
4881
|
}
|
|
4974
4882
|
};
|
|
4975
4883
|
|
|
4976
|
-
// ../../node_modules/path-scurry/dist/esm/index.js
|
|
4884
|
+
// ../../node_modules/glob/node_modules/path-scurry/dist/esm/index.js
|
|
4977
4885
|
import { posix, win32 } from "node:path";
|
|
4978
4886
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
4979
4887
|
import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps } from "fs";
|
|
@@ -5867,7 +5775,7 @@ var Minipass = class extends EventEmitter {
|
|
|
5867
5775
|
}
|
|
5868
5776
|
};
|
|
5869
5777
|
|
|
5870
|
-
// ../../node_modules/path-scurry/dist/esm/index.js
|
|
5778
|
+
// ../../node_modules/glob/node_modules/path-scurry/dist/esm/index.js
|
|
5871
5779
|
var realpathSync = rps.native;
|
|
5872
5780
|
var defaultFS = {
|
|
5873
5781
|
lstatSync,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-vite",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.8",
|
|
4
4
|
"description": "A Storybook builder to dev and build with Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@storybook/csf-plugin": "10.0.
|
|
51
|
+
"@storybook/csf-plugin": "10.0.8",
|
|
52
52
|
"ts-dedent": "^2.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"vite": "^7.0.4"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"storybook": "^10.0.
|
|
66
|
+
"storybook": "^10.0.8",
|
|
67
67
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae1l"
|
|
73
73
|
}
|