@storybook/vue3-vite 7.0.7 → 7.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.mjs +1 -0
- package/package.json +11 -12
- package/dist/preset.mjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/vue3-vite",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.8",
|
|
4
4
|
"description": "Storybook for Vue3 and Vite: Develop Vue3 components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/storybookjs/storybook/tree/
|
|
8
|
+
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/vue3-vite",
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/storybookjs/storybook/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/storybookjs/storybook.git",
|
|
15
|
-
"directory": "frameworks/vue3-vite"
|
|
15
|
+
"directory": "code/frameworks/vue3-vite"
|
|
16
16
|
},
|
|
17
17
|
"funding": {
|
|
18
18
|
"type": "opencollective",
|
|
@@ -21,15 +21,14 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
24
25
|
"node": "./dist/index.js",
|
|
25
26
|
"require": "./dist/index.js",
|
|
26
|
-
"import": "./dist/index.mjs"
|
|
27
|
-
"types": "./dist/index.d.ts"
|
|
27
|
+
"import": "./dist/index.mjs"
|
|
28
28
|
},
|
|
29
29
|
"./preset": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"types": "./dist/preset.d.ts"
|
|
30
|
+
"types": "./dist/preset.d.ts",
|
|
31
|
+
"require": "./dist/preset.js"
|
|
33
32
|
},
|
|
34
33
|
"./package.json": "./package.json"
|
|
35
34
|
},
|
|
@@ -48,9 +47,9 @@
|
|
|
48
47
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
49
48
|
},
|
|
50
49
|
"dependencies": {
|
|
51
|
-
"@storybook/builder-vite": "7.0.
|
|
52
|
-
"@storybook/core-server": "7.0.
|
|
53
|
-
"@storybook/vue3": "7.0.
|
|
50
|
+
"@storybook/builder-vite": "7.0.8",
|
|
51
|
+
"@storybook/core-server": "7.0.8",
|
|
52
|
+
"@storybook/vue3": "7.0.8",
|
|
54
53
|
"@vitejs/plugin-vue": "^4.0.0",
|
|
55
54
|
"magic-string": "^0.27.0",
|
|
56
55
|
"vue-docgen-api": "^4.40.0"
|
|
@@ -78,5 +77,5 @@
|
|
|
78
77
|
],
|
|
79
78
|
"platform": "node"
|
|
80
79
|
},
|
|
81
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "9991b68c7d0cd1543c974f358cae9e0d02b29e7e"
|
|
82
81
|
}
|
package/dist/preset.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{hasVitePlugins}from"@storybook/builder-vite";import{mergeConfig}from"vite";import{parse}from"vue-docgen-api";import{createFilter}from"vite";import MagicString from"magic-string";function vueDocgen(){let filter=createFilter(/\.(vue)$/);return{name:"storybook:vue-docgen-plugin",async transform(src,id){if(!filter(id))return;let metaData=await parse(id),metaSource=JSON.stringify(metaData),s=new MagicString(src);return s.append(`;_sfc_main.__docgenInfo = ${metaSource}`),{code:s.toString(),map:s.generateMap({hires:!0,source:id})}}}}var core={builder:"@storybook/builder-vite",renderer:"@storybook/vue3"},viteFinal=async(config,{presets})=>{let plugins=[];if(!await hasVitePlugins(config.plugins,["vite:vue"])){let{default:vue}=await import("@vitejs/plugin-vue");plugins.push(vue())}return plugins.push(vueDocgen()),mergeConfig(config,{plugins,resolve:{alias:{vue:"vue/dist/vue.esm-bundler.js"}}})};export{core,viteFinal};
|