storybook-web-components-rsbuild 3.0.0-beta.5 → 3.0.0-beta.6
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/node/index.js +6 -7
- package/dist/preset.js +12 -13
- package/package.json +4 -7
- package/dist/_node-chunks/chunk-NYB6WFMI.js +0 -21
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f6b20b2646bc5cfc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f6b20b2646bc5cfc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f6b20b2646bc5cfc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f6b20b2646bc5cfc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f6b20b2646bc5cfc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f6b20b2646bc5cfc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-NYB6WFMI.js";
|
|
13
12
|
|
|
14
13
|
// src/node/index.ts
|
|
15
14
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f6b20b2646bc5cfc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f6b20b2646bc5cfc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f6b20b2646bc5cfc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f6b20b2646bc5cfc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f6b20b2646bc5cfc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f6b20b2646bc5cfc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
__require
|
|
14
|
-
} from "./_node-chunks/chunk-NYB6WFMI.js";
|
|
15
12
|
|
|
16
13
|
// src/preset.ts
|
|
17
|
-
import {
|
|
18
|
-
var
|
|
14
|
+
import { fileURLToPath } from "node:url";
|
|
15
|
+
var core = async (config, options) => {
|
|
19
16
|
let framework = await options.presets.apply("framework");
|
|
20
17
|
return {
|
|
21
18
|
builder: {
|
|
22
|
-
name:
|
|
19
|
+
name: fileURLToPath(import.meta.resolve("storybook-builder-rsbuild")),
|
|
23
20
|
options: typeof framework == "string" ? {} : framework.options.builder || {}
|
|
24
21
|
},
|
|
25
|
-
renderer:
|
|
22
|
+
renderer: fileURLToPath(
|
|
23
|
+
import.meta.resolve("@storybook/web-components/preset")
|
|
24
|
+
)
|
|
26
25
|
};
|
|
27
26
|
}, rsbuildFinal = (config, options) => (delete config.html, config);
|
|
28
27
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook-web-components-rsbuild",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.6",
|
|
4
4
|
"description": "Storybook for web component and Rsbuild: Develop React Component in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -34,9 +34,6 @@
|
|
|
34
34
|
"./package.json": "./package.json",
|
|
35
35
|
"./preset": "./dist/preset.js"
|
|
36
36
|
},
|
|
37
|
-
"main": "dist/index.js",
|
|
38
|
-
"module": "dist/index.js",
|
|
39
|
-
"types": "dist/index.d.ts",
|
|
40
37
|
"files": [
|
|
41
38
|
"dist/**/*",
|
|
42
39
|
"README.md",
|
|
@@ -46,13 +43,13 @@
|
|
|
46
43
|
],
|
|
47
44
|
"dependencies": {
|
|
48
45
|
"@storybook/web-components": "^10.0.0",
|
|
49
|
-
"storybook-builder-rsbuild": "3.0.0-beta.
|
|
46
|
+
"storybook-builder-rsbuild": "3.0.0-beta.6"
|
|
50
47
|
},
|
|
51
48
|
"devDependencies": {
|
|
52
|
-
"@rsbuild/core": "^1.
|
|
49
|
+
"@rsbuild/core": "^1.6.7",
|
|
53
50
|
"@types/node": "^22.0.0",
|
|
54
51
|
"lit": "^3.3.1",
|
|
55
|
-
"storybook": "10.0.
|
|
52
|
+
"storybook": "10.0.8",
|
|
56
53
|
"typescript": "^5.9.3"
|
|
57
54
|
},
|
|
58
55
|
"peerDependencies": {
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_89101e4b143f679b from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_89101e4b143f679b from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_89101e4b143f679b from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_89101e4b143f679b.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_89101e4b143f679b.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_89101e4b143f679b.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
|
|
13
|
-
get: (a, b) => (typeof require < "u" ? require : a)[b]
|
|
14
|
-
}) : x)(function(x) {
|
|
15
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
16
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
__require
|
|
21
|
-
};
|