storybook-vue3-rsbuild 0.0.1 → 0.0.3
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/LICENSE +1 -1
- package/README.md +3 -1
- package/package.json +18 -7
- package/preset.js +1 -1
- package/dist/chunk-3EIOPNXP.mjs +0 -57
- package/dist/chunk-4WQDGMXE.mjs +0 -57
- package/dist/chunk-5UCYT2FA.mjs +0 -66
- package/dist/chunk-5ZQEOG4N.mjs +0 -50
- package/dist/chunk-A5GQNXZ2.mjs +0 -58
- package/dist/chunk-BWOSHFK4.mjs +0 -44
- package/dist/chunk-C26GBKJG.mjs +0 -72
- package/dist/chunk-CDFKRFI5.mjs +0 -52
- package/dist/chunk-CIPUH5EH.mjs +0 -56
- package/dist/chunk-D6UQSHGU.mjs +0 -56
- package/dist/chunk-DOD3HV6P.mjs +0 -71
- package/dist/chunk-I3W2BDYZ.mjs +0 -71
- package/dist/chunk-IDUKMUEB.mjs +0 -52
- package/dist/chunk-IH3TXYTU.mjs +0 -72
- package/dist/chunk-JZRX3EGM.mjs +0 -74
- package/dist/chunk-KLVY43ZM.mjs +0 -44
- package/dist/chunk-LBVFB7EC.mjs +0 -47
- package/dist/chunk-MPIQ664X.mjs +0 -71
- package/dist/chunk-MY2IYEFI.mjs +0 -58
- package/dist/chunk-O6KUUZA6.mjs +0 -53
- package/dist/chunk-PEWUKCXX.mjs +0 -58
- package/dist/chunk-PFDX7D2C.mjs +0 -55
- package/dist/chunk-PHFFO7A6.mjs +0 -71
- package/dist/chunk-PJZVTTEB.mjs +0 -56
- package/dist/chunk-Q2SNQVVN.mjs +0 -57
- package/dist/chunk-R57CWIPS.mjs +0 -51
- package/dist/chunk-RNDU3TK7.mjs +0 -72
- package/dist/chunk-RTN725VB.mjs +0 -52
- package/dist/chunk-SKTSBEAV.mjs +0 -66
- package/dist/chunk-TCBK3RAA.mjs +0 -38
- package/dist/chunk-TFF6KQ6T.mjs +0 -73
- package/dist/chunk-U3HZHJ2X.mjs +0 -72
- package/dist/chunk-U42XVPSO.mjs +0 -53
- package/dist/chunk-U4E5MR76.mjs +0 -44
- package/dist/chunk-UQ3S245P.mjs +0 -56
- package/dist/chunk-V5RZT43H.mjs +0 -72
- package/dist/chunk-VGEIG6F4.mjs +0 -30
- package/dist/chunk-WAXGOBY2.mjs +0 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-WKGR473C.mjs +0 -67
- package/dist/chunk-X2B4PYBX.mjs +0 -44
- package/dist/chunk-YAXBE2N5.mjs +0 -57
- package/dist/chunk-ZSNEJSBE.mjs +0 -56
- package/dist/chunk-ZXIRSC62.mjs +0 -47
- package/dist/framework-preset-vue3-docs.d.mts +0 -7
- package/dist/framework-preset-vue3-docs.d.ts +0 -7
- package/dist/framework-preset-vue3-docs.js +0 -72
- package/dist/framework-preset-vue3-docs.mjs +0 -6
- package/dist/index.d.mts +0 -3
- package/dist/plugins/vue-component-meta.js +0 -1
- package/dist/plugins/vue-component-meta.mjs +0 -0
- package/dist/plugins/vue-docgen.js +0 -1
- package/dist/plugins/vue-docgen.mjs +0 -0
- package/dist/preset.d.mts +0 -9
- package/dist/preset.mjs +0 -27
- package/dist/types.d.mts +0 -26
- package/dist/types.d.ts +0 -26
- package/dist/types.js +0 -18
- package/dist/types.mjs +0 -1
package/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2024
|
3
|
+
Copyright (c) 2024 Rspack Contrib
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
package/package.json
CHANGED
@@ -1,10 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "storybook-vue3-rsbuild",
|
3
|
-
"version": "0.0.
|
4
|
-
"description": "Storybook for Vue3: Develop React Component in isolation with Hot Reloading.",
|
3
|
+
"version": "0.0.3",
|
4
|
+
"description": "Storybook for Vue3 and Rsbuild: Develop React Component in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
|
-
"storybook"
|
6
|
+
"storybook",
|
7
|
+
"rsbuild",
|
8
|
+
"rspack",
|
9
|
+
"vue3"
|
7
10
|
],
|
11
|
+
"bugs": {
|
12
|
+
"url": "https://github.com/rspack-contrib/storybook-rsbuild/issues"
|
13
|
+
},
|
14
|
+
"repository": {
|
15
|
+
"type": "git",
|
16
|
+
"url": "https://github.com/rspack-contrib/storybook-rsbuild",
|
17
|
+
"directory": "packages/vue3-rsbuild"
|
18
|
+
},
|
8
19
|
"license": "MIT",
|
9
20
|
"exports": {
|
10
21
|
".": {
|
@@ -35,11 +46,11 @@
|
|
35
46
|
],
|
36
47
|
"dependencies": {
|
37
48
|
"@rsbuild/core": "0.6.15",
|
38
|
-
"@storybook/
|
39
|
-
"@storybook/
|
40
|
-
"@storybook/
|
49
|
+
"@storybook/docs-tools": "^8.0.10",
|
50
|
+
"@storybook/types": "^8.0.10",
|
51
|
+
"@storybook/vue3": "^8.0.10",
|
41
52
|
"vue-docgen-loader": "^1.5.1",
|
42
|
-
"storybook-builder-rsbuild": "0.0.
|
53
|
+
"storybook-builder-rsbuild": "0.0.3"
|
43
54
|
},
|
44
55
|
"devDependencies": {
|
45
56
|
"@types/node": "^18.0.0",
|
package/preset.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
module.exports = require('./dist/preset')
|
1
|
+
module.exports = require('./dist/preset')
|
package/dist/chunk-3EIOPNXP.mjs
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
const finalConfig = mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
rspack: () => {
|
28
|
-
return {
|
29
|
-
module: {
|
30
|
-
rules: [
|
31
|
-
{
|
32
|
-
test: /\.vue$/,
|
33
|
-
loader: __require.resolve("vue-docgen-loader", {
|
34
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
35
|
-
}),
|
36
|
-
enforce: "post",
|
37
|
-
options: {
|
38
|
-
docgenOptions: {
|
39
|
-
// alias: config.resolve?.alias,
|
40
|
-
...vueDocgenOptions
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
]
|
45
|
-
}
|
46
|
-
};
|
47
|
-
}
|
48
|
-
}
|
49
|
-
});
|
50
|
-
console.log("\u{1F463}", finalConfig.tools?.rspack);
|
51
|
-
return finalConfig;
|
52
|
-
};
|
53
|
-
|
54
|
-
export {
|
55
|
-
__require,
|
56
|
-
rsbuildFinal
|
57
|
-
};
|
package/dist/chunk-4WQDGMXE.mjs
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
const finalConfig = mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
rspack: (config2, { mergeConfig }) => {
|
28
|
-
return {
|
29
|
-
module: {
|
30
|
-
rules: [
|
31
|
-
{
|
32
|
-
test: /\.vue$/,
|
33
|
-
loader: __require.resolve("vue-docgen-loader", {
|
34
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
35
|
-
}),
|
36
|
-
enforce: "post",
|
37
|
-
options: {
|
38
|
-
docgenOptions: {
|
39
|
-
// alias: config.resolve?.alias,
|
40
|
-
...vueDocgenOptions
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
]
|
45
|
-
}
|
46
|
-
};
|
47
|
-
}
|
48
|
-
}
|
49
|
-
});
|
50
|
-
console.log("\u{1F463}", finalConfig.tools?.rspack);
|
51
|
-
return finalConfig;
|
52
|
-
};
|
53
|
-
|
54
|
-
export {
|
55
|
-
__require,
|
56
|
-
rsbuildFinal
|
57
|
-
};
|
package/dist/chunk-5UCYT2FA.mjs
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
return mergeRsbuildConfig(
|
26
|
-
config,
|
27
|
-
{
|
28
|
-
tools: {
|
29
|
-
rspack: (config2, { addRules, appendPlugins, rspack, mergeConfig }) => {
|
30
|
-
addRules({
|
31
|
-
test: /\.vue$/,
|
32
|
-
use: "vue-docgen-loader",
|
33
|
-
// loader: require.resolve('vue-docgen-loader', {
|
34
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
35
|
-
// }),
|
36
|
-
enforce: "post",
|
37
|
-
options: {
|
38
|
-
docgenOptions: {
|
39
|
-
alias: config2.resolve?.alias,
|
40
|
-
...vueDocgenOptions
|
41
|
-
}
|
42
|
-
}
|
43
|
-
});
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
// config.module?.rules?.push({
|
48
|
-
// test: /\.vue$/,
|
49
|
-
// loader: require.resolve('vue-docgen-loader', {
|
50
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
51
|
-
// }),
|
52
|
-
// enforce: 'post',
|
53
|
-
// options: {
|
54
|
-
// docgenOptions: {
|
55
|
-
// alias: config.resolve?.alias,
|
56
|
-
// ...vueDocgenOptions,
|
57
|
-
// },
|
58
|
-
// },
|
59
|
-
// }),
|
60
|
-
);
|
61
|
-
};
|
62
|
-
|
63
|
-
export {
|
64
|
-
__require,
|
65
|
-
rsbuildFinal
|
66
|
-
};
|
package/dist/chunk-5ZQEOG4N.mjs
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
return mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
rspack: (config2, { addRules, appendPlugins, rspack, mergeConfig }) => {
|
28
|
-
addRules({
|
29
|
-
test: /\.vue$/,
|
30
|
-
use: "vue-docgen-loader",
|
31
|
-
// loader: require.resolve('vue-docgen-loader', {
|
32
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
33
|
-
// }),
|
34
|
-
enforce: "post",
|
35
|
-
options: {
|
36
|
-
docgenOptions: {
|
37
|
-
alias: config2.resolve?.alias,
|
38
|
-
...vueDocgenOptions
|
39
|
-
}
|
40
|
-
}
|
41
|
-
});
|
42
|
-
}
|
43
|
-
}
|
44
|
-
});
|
45
|
-
};
|
46
|
-
|
47
|
-
export {
|
48
|
-
__require,
|
49
|
-
rsbuildFinal
|
50
|
-
};
|
package/dist/chunk-A5GQNXZ2.mjs
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
const finalConfig = mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
rspack: (config2, { mergeConfig }) => {
|
28
|
-
console.log("\u{1F46D}", config2);
|
29
|
-
return mergeConfig(config2, {
|
30
|
-
module: {
|
31
|
-
rules: [
|
32
|
-
{
|
33
|
-
test: /\.vue$/,
|
34
|
-
loader: __require.resolve("vue-docgen-loader", {
|
35
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
36
|
-
}),
|
37
|
-
enforce: "post",
|
38
|
-
options: {
|
39
|
-
docgenOptions: {
|
40
|
-
alias: config2.resolve?.alias,
|
41
|
-
...vueDocgenOptions
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
]
|
46
|
-
}
|
47
|
-
});
|
48
|
-
}
|
49
|
-
}
|
50
|
-
});
|
51
|
-
console.log("\u{1F463}", finalConfig.tools?.rspack);
|
52
|
-
return finalConfig;
|
53
|
-
};
|
54
|
-
|
55
|
-
export {
|
56
|
-
__require,
|
57
|
-
rsbuildFinal
|
58
|
-
};
|
package/dist/chunk-BWOSHFK4.mjs
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
var rsbuildFinal = (config, options) => {
|
12
|
-
console.log("\u{1F468}\u200D\u{1F3A4}");
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
config.module?.rules?.push({
|
26
|
-
test: /\.vue$/,
|
27
|
-
loader: __require.resolve("vue-docgen-loader", {
|
28
|
-
paths: [__require.resolve("@storybook/preset-vue3-webpack")]
|
29
|
-
}),
|
30
|
-
enforce: "post",
|
31
|
-
options: {
|
32
|
-
docgenOptions: {
|
33
|
-
alias: config.resolve?.alias,
|
34
|
-
...vueDocgenOptions
|
35
|
-
}
|
36
|
-
}
|
37
|
-
});
|
38
|
-
return config;
|
39
|
-
};
|
40
|
-
|
41
|
-
export {
|
42
|
-
__require,
|
43
|
-
rsbuildFinal
|
44
|
-
};
|
package/dist/chunk-C26GBKJG.mjs
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
const finalConfig = mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
rspack: {
|
28
|
-
module: {
|
29
|
-
rules: [
|
30
|
-
{
|
31
|
-
test: /\.vue$/,
|
32
|
-
use: "vue-docgen-loader",
|
33
|
-
// loader: require.resolve('vue-docgen-loader', {
|
34
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
35
|
-
// }),
|
36
|
-
enforce: "post",
|
37
|
-
options: {
|
38
|
-
docgenOptions: {
|
39
|
-
// alias: config.resolve?.alias,
|
40
|
-
...vueDocgenOptions
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
]
|
45
|
-
}
|
46
|
-
}
|
47
|
-
// rspack: (config, { addRules, appendPlugins, rspack, mergeConfig }) => {
|
48
|
-
// addRules({
|
49
|
-
// test: /\.vue$/,
|
50
|
-
// use: 'vue-docgen-loader',
|
51
|
-
// // loader: require.resolve('vue-docgen-loader', {
|
52
|
-
// // paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
53
|
-
// // }),
|
54
|
-
// enforce: 'post',
|
55
|
-
// options: {
|
56
|
-
// docgenOptions: {
|
57
|
-
// alias: config.resolve?.alias,
|
58
|
-
// ...vueDocgenOptions,
|
59
|
-
// },
|
60
|
-
// },
|
61
|
-
// })
|
62
|
-
// },
|
63
|
-
}
|
64
|
-
});
|
65
|
-
console.log("\u{1F463}", finalConfig.tools?.rspack);
|
66
|
-
return finalConfig;
|
67
|
-
};
|
68
|
-
|
69
|
-
export {
|
70
|
-
__require,
|
71
|
-
rsbuildFinal
|
72
|
-
};
|
package/dist/chunk-CDFKRFI5.mjs
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
const finalConfig = mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
rspack: (config2, { addRules, appendPlugins, rspack, mergeConfig }) => {
|
28
|
-
addRules({
|
29
|
-
test: /\.vue$/,
|
30
|
-
use: "vue-docgen-loader",
|
31
|
-
// loader: require.resolve('vue-docgen-loader', {
|
32
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
33
|
-
// }),
|
34
|
-
enforce: "post",
|
35
|
-
options: {
|
36
|
-
docgenOptions: {
|
37
|
-
alias: config2.resolve?.alias,
|
38
|
-
...vueDocgenOptions
|
39
|
-
}
|
40
|
-
}
|
41
|
-
});
|
42
|
-
}
|
43
|
-
}
|
44
|
-
});
|
45
|
-
console.log("\u{1F463}", finalConfig);
|
46
|
-
return finalConfig;
|
47
|
-
};
|
48
|
-
|
49
|
-
export {
|
50
|
-
__require,
|
51
|
-
rsbuildFinal
|
52
|
-
};
|
package/dist/chunk-CIPUH5EH.mjs
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
const finalConfig = mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
rspack: {
|
28
|
-
module: {
|
29
|
-
rules: [
|
30
|
-
{
|
31
|
-
test: /\.vue$/,
|
32
|
-
// use: 'vue-docgen-loader',
|
33
|
-
loader: __require.resolve("vue-docgen-loader", {
|
34
|
-
// paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
35
|
-
}),
|
36
|
-
enforce: "post",
|
37
|
-
options: {
|
38
|
-
docgenOptions: {
|
39
|
-
// alias: config.resolve?.alias,
|
40
|
-
...vueDocgenOptions
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
]
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
});
|
49
|
-
console.log("\u{1F463}", finalConfig.tools?.rspack);
|
50
|
-
return finalConfig;
|
51
|
-
};
|
52
|
-
|
53
|
-
export {
|
54
|
-
__require,
|
55
|
-
rsbuildFinal
|
56
|
-
};
|
package/dist/chunk-D6UQSHGU.mjs
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
3
|
-
}) : x)(function(x) {
|
4
|
-
if (typeof require !== "undefined")
|
5
|
-
return require.apply(this, arguments);
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
7
|
-
});
|
8
|
-
|
9
|
-
// src/framework-preset-vue3-docs.ts
|
10
|
-
import { hasDocsOrControls } from "@storybook/docs-tools";
|
11
|
-
import { mergeRsbuildConfig } from "@rsbuild/core";
|
12
|
-
var rsbuildFinal = (config, options) => {
|
13
|
-
if (!hasDocsOrControls(options))
|
14
|
-
return config;
|
15
|
-
let vueDocgenOptions = {};
|
16
|
-
options.presetsList?.forEach((preset) => {
|
17
|
-
if (preset.name.includes("addon-docs") && preset.options.vueDocgenOptions) {
|
18
|
-
const appendableOptions = preset.options.vueDocgenOptions;
|
19
|
-
vueDocgenOptions = {
|
20
|
-
...vueDocgenOptions,
|
21
|
-
...appendableOptions
|
22
|
-
};
|
23
|
-
}
|
24
|
-
});
|
25
|
-
const finalConfig = mergeRsbuildConfig(config, {
|
26
|
-
tools: {
|
27
|
-
// rspack: {
|
28
|
-
// module: {
|
29
|
-
// rules: [
|
30
|
-
// {
|
31
|
-
// test: /\.vue$/,
|
32
|
-
// // use: 'vue-docgen-loader',
|
33
|
-
// loader: require.resolve('vue-docgen-loader', {
|
34
|
-
// // paths: [require.resolve('@storybook/preset-vue3-webpack')],
|
35
|
-
// }),
|
36
|
-
// enforce: 'post',
|
37
|
-
// options: {
|
38
|
-
// docgenOptions: {
|
39
|
-
// // alias: config.resolve?.alias,
|
40
|
-
// ...vueDocgenOptions,
|
41
|
-
// },
|
42
|
-
// },
|
43
|
-
// },
|
44
|
-
// ],
|
45
|
-
// },
|
46
|
-
// },
|
47
|
-
}
|
48
|
-
});
|
49
|
-
console.log("\u{1F463}", finalConfig.tools?.rspack);
|
50
|
-
return finalConfig;
|
51
|
-
};
|
52
|
-
|
53
|
-
export {
|
54
|
-
__require,
|
55
|
-
rsbuildFinal
|
56
|
-
};
|