@storybook/builder-vite 10.6.0-alpha.5 → 10.6.0-alpha.7

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_tanuh3btx3m from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_tanuh3btx3m from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_tanuh3btx3m from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0wq8l9r584ym from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0wq8l9r584ym from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0wq8l9r584ym from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_tanuh3btx3m.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_tanuh3btx3m.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_tanuh3btx3m.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0wq8l9r584ym.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0wq8l9r584ym.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0wq8l9r584ym.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -76,7 +76,7 @@ function storybookConfigPlugin(options) {
76
76
  import { loadPreviewOrConfigFile } from "storybook/internal/common";
77
77
  import { babelParser, extractMockCalls, findMockRedirect } from "storybook/internal/mocking-utils";
78
78
 
79
- // ../../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
79
+ // node_modules/pathe/dist/shared/pathe.ff20891b.mjs
80
80
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
81
81
  function normalizeWindowsPath(input = "") {
82
82
  return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
@@ -354,7 +354,7 @@ function genRawValue(value, indent = "", options = {}) {
354
354
  return value === void 0 ? "undefined" : value === null ? "null" : Array.isArray(value) ? genArrayFromRaw(value, indent, options) : value && typeof value == "object" ? genObjectFromRaw(value, indent, options) : options.preserveTypes && typeof value != "function" ? JSON.stringify(value) : value.toString();
355
355
  }
356
356
 
357
- // ../../../node_modules/pathe/dist/utils.mjs
357
+ // node_modules/pathe/dist/utils.mjs
358
358
  var FILENAME_RE = /(^|[/\\])([^/\\]+?)(?=(\.[^.]+)?$)/;
359
359
  function filename(path2) {
360
360
  return path2.match(FILENAME_RE)?.[2];
package/dist/index.d.ts CHANGED
@@ -35,9 +35,12 @@ declare function hasVitePlugins(plugins: PluginOption[], names: string[]): Promi
35
35
  //#region code/builders/builder-vite/.dts-emit/code/builders/builder-vite/src/index.d.ts
36
36
  declare function bail(): Promise<void>;
37
37
  /**
38
- * Returns a {@link ChangeDetectionAdapter} bound to the Vite dev server created by `start()`.
38
+ * Returns a {@link ChangeDetectionAdapter} bound to the Vite dev server created by `start()`, or —
39
+ * when `options` are passed by a consumer that runs without a dev server (the `storybook tools`
40
+ * CLI) — a headless adapter that resolves the same config server-lessly.
39
41
  *
40
- * Throws if called before `start()` has resolved (i.e. before the Vite dev server exists).
42
+ * Throws if called without options before `start()` has resolved (i.e. before the Vite dev server
43
+ * exists).
41
44
  */
42
45
  declare const changeDetectionAdapter: NonNullable<Builder<Options>['changeDetectionAdapter']>;
43
46
  declare const start: ViteBuilder['start'];
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_tanuh3btx3m from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_tanuh3btx3m from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_tanuh3btx3m from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0wq8l9r584ym from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0wq8l9r584ym from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0wq8l9r584ym from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_tanuh3btx3m.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_tanuh3btx3m.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_tanuh3btx3m.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0wq8l9r584ym.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0wq8l9r584ym.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0wq8l9r584ym.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -24,7 +24,7 @@ import {
24
24
  normalize,
25
25
  relative,
26
26
  viteCorePlugins
27
- } from "./_node-chunks/chunk-EVRIDZO2.js";
27
+ } from "./_node-chunks/chunk-6CBEFN5G.js";
28
28
 
29
29
  // ../../../node_modules/picocolors/picocolors.js
30
30
  var require_picocolors = __commonJS({
@@ -148,7 +148,7 @@ var withoutVitePlugins = async (plugins = [], namesToRemove) => {
148
148
  };
149
149
 
150
150
  // src/vite-config.ts
151
- import { resolve as resolve2 } from "node:path";
151
+ import { resolve as resolve3 } from "node:path";
152
152
  import { getBuilderOptions, resolvePathInStorybookCache } from "storybook/internal/common";
153
153
 
154
154
  // src/plugins/code-generator-plugin.ts
@@ -454,8 +454,8 @@ var ImportType;
454
454
  A2[A2.Static = 1] = "Static", A2[A2.Dynamic = 2] = "Dynamic", A2[A2.ImportMeta = 3] = "ImportMeta", A2[A2.StaticSourcePhase = 4] = "StaticSourcePhase", A2[A2.DynamicSourcePhase = 5] = "DynamicSourcePhase", A2[A2.StaticDeferPhase = 6] = "StaticDeferPhase", A2[A2.DynamicDeferPhase = 7] = "DynamicDeferPhase";
455
455
  })(ImportType || (ImportType = {}));
456
456
  var A = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
457
- function parse(E2, g = "@") {
458
- if (!C) return init.then((() => parse(E2)));
457
+ function parse2(E2, g = "@") {
458
+ if (!C) return init.then((() => parse2(E2)));
459
459
  let I = E2.length + 1, w = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength;
460
460
  w > 0 && C.memory.grow(Math.ceil(w / 65536));
461
461
  let K = C.sa(I - 1);
@@ -503,8 +503,8 @@ for (let i = 0; i < chars.length; i++) {
503
503
  let c = chars.charCodeAt(i);
504
504
  intToChar[i] = c, charToInt[c] = i;
505
505
  }
506
- function encodeInteger(builder, num, relative3) {
507
- let delta = num - relative3;
506
+ function encodeInteger(builder, num, relative4) {
507
+ let delta = num - relative4;
508
508
  delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
509
509
  do {
510
510
  let clamped = delta & 31;
@@ -550,7 +550,7 @@ function encode(decoded) {
550
550
  return writer.flush();
551
551
  }
552
552
 
553
- // ../../../node_modules/magic-string/dist/index.mjs
553
+ // node_modules/magic-string/dist/index.mjs
554
554
  var BitSet = class BitSet2 {
555
555
  constructor(arg) {
556
556
  this.bits = arg instanceof BitSet2 ? arg.bits.slice() : [];
@@ -1333,7 +1333,7 @@ async function injectExportOrderPlugin() {
1333
1333
  async handler(code, id) {
1334
1334
  if (!filter(id))
1335
1335
  return;
1336
- let [, exports] = await parse(code), exportNames = exports.map((e) => code.substring(e.s, e.e));
1336
+ let [, exports] = await parse2(code), exportNames = exports.map((e) => code.substring(e.s, e.e));
1337
1337
  if (exportNames.includes("__namedExportsOrder"))
1338
1338
  return;
1339
1339
  let s = new MagicString(code), orderedExports = exportNames.filter((e) => e !== "default");
@@ -1380,11 +1380,11 @@ async function storybookEntryPlugin(options) {
1380
1380
  }
1381
1381
 
1382
1382
  // src/plugins/webpack-stats-plugin.ts
1383
- import { relative as relative2 } from "node:path";
1383
+ import { relative as relative3 } from "node:path";
1384
1384
 
1385
1385
  // ../../../node_modules/slash/index.js
1386
- function slash(path) {
1387
- return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
1386
+ function slash(path2) {
1387
+ return path2.startsWith("\\\\?\\") ? path2 : path2.replace(/\\/g, "/");
1388
1388
  }
1389
1389
 
1390
1390
  // src/plugins/webpack-stats-plugin.ts
@@ -1395,18 +1395,18 @@ function isUserCode(moduleName) {
1395
1395
  return moduleName ? Object.values(SB_VIRTUAL_FILES).includes(getOriginalVirtualModuleId(moduleName)) ? !0 : !moduleName.startsWith("vite/") && !moduleName.startsWith("\0") && moduleName !== "react/jsx-runtime" : !1;
1396
1396
  }
1397
1397
  function pluginWebpackStats({ workingDir }) {
1398
- function normalize2(filename) {
1398
+ function normalize3(filename) {
1399
1399
  if (filename.startsWith("virtual:"))
1400
1400
  return `/${filename}`;
1401
1401
  if (Object.values(SB_VIRTUAL_FILES).includes(getOriginalVirtualModuleId(filename)))
1402
1402
  return `/${getOriginalVirtualModuleId(filename)}`;
1403
1403
  {
1404
- let relativePath = relative2(workingDir, stripQueryParams(filename));
1404
+ let relativePath = relative3(workingDir, stripQueryParams(filename));
1405
1405
  return `./${slash(relativePath)}`;
1406
1406
  }
1407
1407
  }
1408
1408
  function createReasons(importers) {
1409
- return (importers || []).map((i) => ({ moduleName: normalize2(i) }));
1409
+ return (importers || []).map((i) => ({ moduleName: normalize3(i) }));
1410
1410
  }
1411
1411
  function createStatsMapModule(filename, importers) {
1412
1412
  return {
@@ -1422,7 +1422,7 @@ function pluginWebpackStats({ workingDir }) {
1422
1422
  enforce: "post",
1423
1423
  moduleParsed: function(mod) {
1424
1424
  isUserCode(mod.id) && mod.importedIds.concat(mod.dynamicallyImportedIds).filter((name) => isUserCode(name)).forEach((depIdUnsafe) => {
1425
- let depId = normalize2(depIdUnsafe);
1425
+ let depId = normalize3(depIdUnsafe);
1426
1426
  if (!statsMap.has(depId)) {
1427
1427
  statsMap.set(depId, createStatsMapModule(depId, [mod.id]));
1428
1428
  return;
@@ -1438,54 +1438,41 @@ function pluginWebpackStats({ workingDir }) {
1438
1438
  };
1439
1439
  }
1440
1440
 
1441
- // src/plugins/csf-plugin.ts
1442
- import { vite } from "@storybook/csf-plugin";
1443
- async function csfPlugin(config) {
1444
- let { presets } = config, docsOptions = (
1445
- // @ts-expect-error - not sure what type to use here
1446
- (await presets.apply("addons", [])).find((a) => [a, a.name].includes("@storybook/addon-docs"))?.options ?? {}
1447
- ), enrichCsf = await presets.apply("experimental_enrichCsf");
1448
- return vite({
1449
- ...docsOptions?.csfPluginOptions,
1450
- enrichCsf
1451
- });
1452
- }
1453
-
1454
1441
  // src/plugins/storybook-external-globals-plugin.ts
1455
1442
  import { existsSync as existsSync3 } from "node:fs";
1456
1443
  import { mkdir, writeFile } from "node:fs/promises";
1457
- import { dirname as dirname4, join as join5 } from "node:path";
1444
+ import { dirname as dirname4, join as join6 } from "node:path";
1458
1445
  import { globalsNameReferenceMap } from "storybook/internal/preview/globals";
1459
1446
 
1460
1447
  // ../../../node_modules/empathic/package.mjs
1461
1448
  import { env } from "node:process";
1462
- import { dirname as dirname3, join as join4 } from "node:path";
1449
+ import { dirname as dirname3, join as join5 } from "node:path";
1463
1450
  import { existsSync as existsSync2, mkdirSync } from "node:fs";
1464
1451
 
1465
1452
  // ../../../node_modules/empathic/access.mjs
1466
1453
  import { accessSync, constants } from "node:fs";
1467
- function ok(path, mode) {
1454
+ function ok(path2, mode) {
1468
1455
  try {
1469
- return accessSync(path, mode), !0;
1456
+ return accessSync(path2, mode), !0;
1470
1457
  } catch {
1471
1458
  return !1;
1472
1459
  }
1473
1460
  }
1474
- function writable(path) {
1475
- return ok(path, constants.W_OK);
1461
+ function writable(path2) {
1462
+ return ok(path2, constants.W_OK);
1476
1463
  }
1477
1464
 
1478
1465
  // ../../../node_modules/empathic/find.mjs
1479
- import { join as join3 } from "node:path";
1466
+ import { join as join4 } from "node:path";
1480
1467
  import { existsSync, statSync } from "node:fs";
1481
1468
 
1482
1469
  // ../../../node_modules/empathic/walk.mjs
1483
1470
  import { dirname as dirname2 } from "node:path";
1484
1471
 
1485
1472
  // ../../../node_modules/empathic/resolve.mjs
1486
- import { isAbsolute, join as join2, resolve } from "node:path";
1473
+ import { isAbsolute as isAbsolute2, join as join3, resolve as resolve2 } from "node:path";
1487
1474
  function absolute(input, root) {
1488
- return isAbsolute(input) ? input : resolve(root || ".", input);
1475
+ return isAbsolute2(input) ? input : resolve2(root || ".", input);
1489
1476
  }
1490
1477
 
1491
1478
  // ../../../node_modules/empathic/walk.mjs
@@ -1500,7 +1487,7 @@ function up(base, options) {
1500
1487
  function up2(name, options) {
1501
1488
  let dir, tmp, start2 = options && options.cwd || "";
1502
1489
  for (dir of up(start2, options))
1503
- if (tmp = join3(dir, name), existsSync(tmp)) return tmp;
1490
+ if (tmp = join4(dir, name), existsSync(tmp)) return tmp;
1504
1491
  }
1505
1492
 
1506
1493
  // ../../../node_modules/empathic/package.mjs
@@ -1513,13 +1500,13 @@ function cache(name, options) {
1513
1500
  if (!dir || /^(1|0|true|false)$/.test(dir)) {
1514
1501
  let pkg = up3(options);
1515
1502
  if (dir = pkg && dirname3(pkg)) {
1516
- let mods = join4(dir, "node_modules"), exists = existsSync2(mods);
1503
+ let mods = join5(dir, "node_modules"), exists = existsSync2(mods);
1517
1504
  if (!writable(exists ? mods : dir)) return;
1518
- dir = join4(mods, ".cache");
1505
+ dir = join5(mods, ".cache");
1519
1506
  }
1520
1507
  }
1521
1508
  if (dir)
1522
- return dir = join4(dir, name), options.create && !existsSync2(dir) && mkdirSync(dir, { recursive: !0 }), dir;
1509
+ return dir = join5(dir, name), options.create && !existsSync2(dir) && mkdirSync(dir, { recursive: !0 }), dir;
1523
1510
  }
1524
1511
 
1525
1512
  // src/plugins/storybook-external-globals-plugin.ts
@@ -1542,10 +1529,10 @@ async function storybookExternalGlobalsPlugin(options) {
1542
1529
  async config(config, { command }) {
1543
1530
  if (command !== "serve")
1544
1531
  return;
1545
- let newAlias = mergeAlias([], config.resolve?.alias), cachePath = cache("sb-vite-plugin-externals", { create: !0 }) ?? join5(process.cwd(), "node_modules", ".cache", "sb-vite-plugin-externals");
1532
+ let newAlias = mergeAlias([], config.resolve?.alias), cachePath = cache("sb-vite-plugin-externals", { create: !0 }) ?? join6(process.cwd(), "node_modules", ".cache", "sb-vite-plugin-externals");
1546
1533
  return await Promise.all(
1547
1534
  Object.keys(externals).map(async (externalKey) => {
1548
- let externalCachePath = join5(cachePath, `${externalKey}.js`);
1535
+ let externalCachePath = join6(cachePath, `${externalKey}.js`);
1549
1536
  if (newAlias.push({ find: new RegExp(`^${externalKey}$`), replacement: externalCachePath }), !existsSync3(externalCachePath)) {
1550
1537
  let directory = dirname4(externalCachePath);
1551
1538
  await mkdir(directory, { recursive: !0 });
@@ -1564,9 +1551,9 @@ async function storybookExternalGlobalsPlugin(options) {
1564
1551
  async handler(code, id) {
1565
1552
  if (globalsList.every((glob) => !code.includes(glob)))
1566
1553
  return;
1567
- let [imports] = parse(code), src = new MagicString(code);
1568
- return imports.forEach(({ n: path, ss: startPosition, se: endPosition }) => {
1569
- let packageName = path;
1554
+ let [imports] = parse2(code), src = new MagicString(code);
1555
+ return imports.forEach(({ n: path2, ss: startPosition, se: endPosition }) => {
1556
+ let packageName = path2;
1570
1557
  if (packageName && globalsList.includes(packageName)) {
1571
1558
  let importStatement = src.slice(startPosition, endPosition), transformedImport = rewriteImport(importStatement, externals, packageName);
1572
1559
  src.update(startPosition, endPosition, transformedImport);
@@ -1615,7 +1602,7 @@ var configEnvServe = {
1615
1602
  isSsrBuild: !1
1616
1603
  };
1617
1604
  async function commonConfig(options, _type) {
1618
- let configEnv = _type === "development" ? configEnvServe : configEnvBuild, { loadConfigFromFile, mergeConfig } = await import("vite"), { viteConfigPath, configLoader } = await getBuilderOptions(options), projectRoot = resolve2(options.configDir, ".."), { config: { build: buildProperty = void 0, ...userConfig } = {} } = await loadConfigFromFile(
1605
+ let configEnv = _type === "development" ? configEnvServe : configEnvBuild, { loadConfigFromFile, mergeConfig } = await import("vite"), { viteConfigPath, configLoader } = await getBuilderOptions(options), projectRoot = resolve3(options.configDir, ".."), { config: { build: buildProperty = void 0, ...userConfig } = {} } = await loadConfigFromFile(
1619
1606
  configEnv,
1620
1607
  viteConfigPath,
1621
1608
  projectRoot,
@@ -1641,7 +1628,6 @@ async function pluginConfig(options) {
1641
1628
  // Shared core plugins (resolve conditions, envPrefix, fs.allow, externals, env vars, etc.)
1642
1629
  ...await viteCorePlugins([], options),
1643
1630
  await storybookExternalGlobalsPlugin(options),
1644
- await csfPlugin(options),
1645
1631
  // Entry plugin: virtual modules for stories, addon setup, and main app entry
1646
1632
  ...await storybookEntryPlugin(options),
1647
1633
  // Builder-specific: webpack-compatible stats for turbosnap/chromatic
@@ -1707,6 +1693,24 @@ async function build(options) {
1707
1693
  )?.storybookGetStats();
1708
1694
  }
1709
1695
 
1696
+ // src/change-detection-adapter/headless.ts
1697
+ function createHeadlessViteChangeDetectionAdapter(options) {
1698
+ return {
1699
+ async getResolveConfig() {
1700
+ let { resolveConfig } = await import("vite"), config = await commonConfig(options, "development"), finalConfig = await options.presets.apply("viteFinal", config, options), resolved = await resolveConfig(finalConfig, "serve", "development");
1701
+ return {
1702
+ projectRoot: resolved.root,
1703
+ alias: resolved.resolve.alias,
1704
+ conditions: resolved.resolve.conditions
1705
+ };
1706
+ },
1707
+ onFileChange() {
1708
+ return () => {
1709
+ };
1710
+ }
1711
+ };
1712
+ }
1713
+
1710
1714
  // src/change-detection-adapter/index.ts
1711
1715
  import { logger as logger3 } from "storybook/internal/node-logger";
1712
1716
  function createViteChangeDetectionAdapter(server2) {
@@ -1732,8 +1736,8 @@ function createViteChangeDetectionAdapter(server2) {
1732
1736
  };
1733
1737
  },
1734
1738
  onFileChange(handler) {
1735
- let FORWARDED_EVENTS = /* @__PURE__ */ new Set(["add", "change", "unlink"]), isForwardedEvent = (name) => FORWARDED_EVENTS.has(name), onAll = (eventName, path) => {
1736
- isForwardedEvent(eventName) && handler({ kind: eventName, path: normalize(path) });
1739
+ let FORWARDED_EVENTS = /* @__PURE__ */ new Set(["add", "change", "unlink"]), isForwardedEvent = (name) => FORWARDED_EVENTS.has(name), onAll = (eventName, path2) => {
1740
+ isForwardedEvent(eventName) && handler({ kind: eventName, path: normalize(path2) });
1737
1741
  };
1738
1742
  return server2.watcher.on("all", onAll), () => {
1739
1743
  server2.watcher.off("all", onAll);
@@ -1780,12 +1784,14 @@ var server;
1780
1784
  async function bail() {
1781
1785
  return server?.close();
1782
1786
  }
1783
- var changeDetectionAdapter = () => {
1784
- if (!server)
1785
- throw new Error(
1786
- "builder-vite: changeDetectionAdapter() called before start(); the Vite dev server is not ready yet."
1787
- );
1788
- return createViteChangeDetectionAdapter(server);
1787
+ var changeDetectionAdapter = (options) => {
1788
+ if (server)
1789
+ return createViteChangeDetectionAdapter(server);
1790
+ if (options)
1791
+ return createHeadlessViteChangeDetectionAdapter(options);
1792
+ throw new Error(
1793
+ "builder-vite: changeDetectionAdapter() called before start(); the Vite dev server is not ready yet."
1794
+ );
1789
1795
  }, start = async ({
1790
1796
  startTime,
1791
1797
  options,
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_tanuh3btx3m from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_tanuh3btx3m from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_tanuh3btx3m from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0wq8l9r584ym from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0wq8l9r584ym from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0wq8l9r584ym from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_tanuh3btx3m.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_tanuh3btx3m.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_tanuh3btx3m.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0wq8l9r584ym.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0wq8l9r584ym.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0wq8l9r584ym.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_tanuh3btx3m.createRequire(import.meta.url);
12
12
  import {
13
13
  optimizeViteDeps,
14
14
  viteCorePlugins
15
- } from "./_node-chunks/chunk-EVRIDZO2.js";
15
+ } from "./_node-chunks/chunk-6CBEFN5G.js";
16
16
  export {
17
17
  optimizeViteDeps,
18
18
  viteCorePlugins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/builder-vite",
3
- "version": "10.6.0-alpha.5",
3
+ "version": "10.6.0-alpha.7",
4
4
  "description": "A Storybook builder to dev and build with Vite",
5
5
  "keywords": [
6
6
  "storybook",
@@ -47,7 +47,6 @@
47
47
  "!src/**/*"
48
48
  ],
49
49
  "dependencies": {
50
- "@storybook/csf-plugin": "10.6.0-alpha.5",
51
50
  "ts-dedent": "^2.0.0"
52
51
  },
53
52
  "devDependencies": {
@@ -62,7 +61,7 @@
62
61
  "vite": "^7.0.4"
63
62
  },
64
63
  "peerDependencies": {
65
- "storybook": "^10.6.0-alpha.5",
64
+ "storybook": "^10.6.0-alpha.7",
66
65
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
67
66
  },
68
67
  "publishConfig": {