storybook-addon-rslib 3.4.0 → 3.4.1
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 +6 -6
- package/dist/preset.js +7 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_be4599bccaf13cd4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_be4599bccaf13cd4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_be4599bccaf13cd4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_be4599bccaf13cd4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_be4599bccaf13cd4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_be4599bccaf13cd4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_be4599bccaf13cd4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_be4599bccaf13cd4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_be4599bccaf13cd4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_be4599bccaf13cd4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_be4599bccaf13cd4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_be4599bccaf13cd4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -23,7 +23,7 @@ var rsbuildFinal = async (config, options) => {
|
|
|
23
23
|
} = rslib, { content } = await loadConfig({
|
|
24
24
|
cwd,
|
|
25
25
|
path: configPath
|
|
26
|
-
}), libConfig = libIndex === !1 ? {} :
|
|
26
|
+
}), libConfigs = content.lib === void 0 ? [{}] : content.lib, libConfig = libIndex === !1 ? {} : Array.isArray(libConfigs) ? libConfigs[libIndex] : void 0;
|
|
27
27
|
if (!libConfig)
|
|
28
28
|
throw new Error(
|
|
29
29
|
`Lib config not found at index ${libIndex}, expect a lib config but got ${libConfig}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook-addon-rslib",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "Storybook addon for loading configuration of Rslib",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"!src/**/*"
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@rsbuild/core": "^2.1.
|
|
39
|
+
"@rsbuild/core": "^2.1.10",
|
|
40
40
|
"@rslib/core": "^0.23.2",
|
|
41
41
|
"@types/node": "^22.0.0",
|
|
42
42
|
"storybook": "10.5.5",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
|
-
"storybook-builder-rsbuild": "3.4.
|
|
44
|
+
"storybook-builder-rsbuild": "3.4.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@rsbuild/core": "^1.5.0 || ^2.0.0-0",
|