@storybook/vue3-vite 10.0.0-beta.0 → 10.0.0-beta.2

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,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bonbf6ys4jm from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bonbf6ys4jm from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bonbf6ys4jm from "node:module";
1
+ import CJS_COMPAT_NODE_URL_vuohxpwe5cc from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_vuohxpwe5cc from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_vuohxpwe5cc from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bonbf6ys4jm.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bonbf6ys4jm.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bonbf6ys4jm.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_vuohxpwe5cc.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_vuohxpwe5cc.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_vuohxpwe5cc.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-TF3SOP6Y.js";
14
+ } from "./chunk-FBUTOJ72.js";
15
15
 
16
16
  // src/plugins/vue-template.ts
17
17
  async function templateCompilation() {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bonbf6ys4jm from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bonbf6ys4jm from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bonbf6ys4jm from "node:module";
1
+ import CJS_COMPAT_NODE_URL_vuohxpwe5cc from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_vuohxpwe5cc from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_vuohxpwe5cc from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bonbf6ys4jm.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bonbf6ys4jm.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bonbf6ys4jm.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_vuohxpwe5cc.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_vuohxpwe5cc.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_vuohxpwe5cc.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/index.d.ts CHANGED
@@ -18,9 +18,11 @@ type FrameworkOptions = {
18
18
  * "vue-component-meta" will become the new default in the future and "vue-docgen-api" will be
19
19
  * removed.
20
20
  *
21
+ * Set to `false` to disable docgen processing entirely for improved build performance.
22
+ *
21
23
  * @default 'vue-docgen-api'
22
24
  */
23
- docgen?: VueDocgenPlugin | {
25
+ docgen?: boolean | VueDocgenPlugin | {
24
26
  plugin: 'vue-component-meta';
25
27
  /**
26
28
  * Tsconfig filename to use. Should be set if your main `tsconfig.json` includes references
@@ -15,9 +15,11 @@ type FrameworkOptions = {
15
15
  * "vue-component-meta" will become the new default in the future and "vue-docgen-api" will be
16
16
  * removed.
17
17
  *
18
+ * Set to `false` to disable docgen processing entirely for improved build performance.
19
+ *
18
20
  * @default 'vue-docgen-api'
19
21
  */
20
- docgen?: VueDocgenPlugin | {
22
+ docgen?: boolean | VueDocgenPlugin | {
21
23
  plugin: 'vue-component-meta';
22
24
  /**
23
25
  * Tsconfig filename to use. Should be set if your main `tsconfig.json` includes references
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bonbf6ys4jm from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bonbf6ys4jm from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bonbf6ys4jm from "node:module";
1
+ import CJS_COMPAT_NODE_URL_vuohxpwe5cc from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_vuohxpwe5cc from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_vuohxpwe5cc from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bonbf6ys4jm.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bonbf6ys4jm.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bonbf6ys4jm.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_vuohxpwe5cc.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_vuohxpwe5cc.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_vuohxpwe5cc.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "../_node-chunks/chunk-TF3SOP6Y.js";
14
+ } from "../_node-chunks/chunk-FBUTOJ72.js";
15
15
 
16
16
  // src/node/index.ts
17
17
  function defineMain(config) {
package/dist/preset.js CHANGED
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_bonbf6ys4jm from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bonbf6ys4jm from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bonbf6ys4jm from "node:module";
1
+ import CJS_COMPAT_NODE_URL_vuohxpwe5cc from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_vuohxpwe5cc from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_vuohxpwe5cc from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bonbf6ys4jm.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bonbf6ys4jm.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bonbf6ys4jm.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_vuohxpwe5cc.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_vuohxpwe5cc.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_vuohxpwe5cc.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  templateCompilation
14
- } from "./_node-chunks/chunk-LJJ3IO2Q.js";
14
+ } from "./_node-chunks/chunk-7KFD6KOI.js";
15
15
  import {
16
16
  __name
17
- } from "./_node-chunks/chunk-TF3SOP6Y.js";
17
+ } from "./_node-chunks/chunk-FBUTOJ72.js";
18
18
 
19
19
  // src/plugins/vue-component-meta.ts
20
20
  import { readFile, stat } from "node:fs/promises";
@@ -247,10 +247,12 @@ var viteFinal = /* @__PURE__ */ __name(async (config, options) => {
247
247
  const framework = await options.presets.apply("framework");
248
248
  const frameworkOptions = typeof framework === "string" ? {} : framework.options ?? {};
249
249
  const docgen = resolveDocgenOptions(frameworkOptions.docgen);
250
- if (docgen.plugin === "vue-component-meta") {
251
- plugins.push(await vueComponentMeta(docgen.tsconfig));
252
- } else {
253
- plugins.push(await vueDocgen());
250
+ if (docgen !== false) {
251
+ if (docgen.plugin === "vue-component-meta") {
252
+ plugins.push(await vueComponentMeta(docgen.tsconfig));
253
+ } else {
254
+ plugins.push(await vueDocgen());
255
+ }
254
256
  }
255
257
  const { mergeConfig } = await import("vite");
256
258
  return mergeConfig(config, {
@@ -258,7 +260,10 @@ var viteFinal = /* @__PURE__ */ __name(async (config, options) => {
258
260
  });
259
261
  }, "viteFinal");
260
262
  var resolveDocgenOptions = /* @__PURE__ */ __name((docgen) => {
261
- if (!docgen) {
263
+ if (docgen === false) {
264
+ return false;
265
+ }
266
+ if (docgen === void 0 || docgen === true) {
262
267
  return { plugin: "vue-docgen-api" };
263
268
  }
264
269
  if (typeof docgen === "string") {
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_bonbf6ys4jm from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bonbf6ys4jm from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bonbf6ys4jm from "node:module";
1
+ import CJS_COMPAT_NODE_URL_vuohxpwe5cc from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_vuohxpwe5cc from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_vuohxpwe5cc from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bonbf6ys4jm.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bonbf6ys4jm.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bonbf6ys4jm.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_vuohxpwe5cc.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_vuohxpwe5cc.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_vuohxpwe5cc.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  templateCompilation
14
- } from "./_node-chunks/chunk-LJJ3IO2Q.js";
14
+ } from "./_node-chunks/chunk-7KFD6KOI.js";
15
15
  import {
16
16
  __name
17
- } from "./_node-chunks/chunk-TF3SOP6Y.js";
17
+ } from "./_node-chunks/chunk-FBUTOJ72.js";
18
18
 
19
19
  // src/vite-plugin.ts
20
20
  var storybookVuePlugin = /* @__PURE__ */ __name(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/vue3-vite",
3
- "version": "10.0.0-beta.0",
3
+ "version": "10.0.0-beta.2",
4
4
  "description": "Storybook for Vue3 and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -51,8 +51,8 @@
51
51
  "prep": "jiti ../../../scripts/build/build-package.ts"
52
52
  },
53
53
  "dependencies": {
54
- "@storybook/builder-vite": "10.0.0-beta.0",
55
- "@storybook/vue3": "10.0.0-beta.0",
54
+ "@storybook/builder-vite": "10.0.0-beta.2",
55
+ "@storybook/vue3": "10.0.0-beta.2",
56
56
  "find-package-json": "^1.2.0",
57
57
  "magic-string": "^0.30.0",
58
58
  "typescript": "^5.8.3",
@@ -66,7 +66,7 @@
66
66
  "vite": "^7.0.4"
67
67
  },
68
68
  "peerDependencies": {
69
- "storybook": "^10.0.0-beta.0",
69
+ "storybook": "^10.0.0-beta.2",
70
70
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
71
71
  },
72
72
  "publishConfig": {