@storybook/builder-webpack5 10.2.0-alpha.1 → 10.2.0-alpha.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/dist/_node-chunks/{chunk-TQ4PQIOG.js → chunk-NYVRFVQQ.js} +6 -6
- package/dist/_node-chunks/{chunk-KBN35ZRR.js → chunk-VP5S5HOK.js} +7 -7
- package/dist/index.js +19 -19
- package/dist/loaders/export-order-loader.js +7 -7
- package/dist/loaders/storybook-mock-transform-loader.js +7 -7
- package/dist/loaders/webpack-automock-loader.js +7 -7
- package/dist/presets/custom-webpack-preset.js +7 -7
- package/dist/presets/preview-preset.js +8 -8
- package/package.json +3 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "storybook/internal/common";
|
|
22
22
|
import { toImportFn } from "@storybook/core-webpack";
|
|
23
23
|
|
|
24
|
-
//
|
|
24
|
+
// ../../../node_modules/slash/index.js
|
|
25
25
|
function slash(path) {
|
|
26
26
|
return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
|
|
27
27
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.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
|
getVirtualModules
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-VP5S5HOK.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-NYVRFVQQ.js";
|
|
20
20
|
|
|
21
|
-
//
|
|
21
|
+
// ../../../node_modules/pretty-hrtime/index.js
|
|
22
22
|
var require_pretty_hrtime = __commonJS({
|
|
23
|
-
"
|
|
23
|
+
"../../../node_modules/pretty-hrtime/index.js"(exports, module) {
|
|
24
24
|
"use strict";
|
|
25
25
|
var minimalDesc = ["h", "min", "s", "ms", "\u03BCs", "ns"], verboseDesc = ["hour", "minute", "second", "millisecond", "microsecond", "nanosecond"], convert = [3600, 60, 1, 1e6, 1e3, 1];
|
|
26
26
|
module.exports = function(source, opts) {
|
|
@@ -34,9 +34,9 @@ var require_pretty_hrtime = __commonJS({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// ../../../node_modules/totalist/sync/index.js
|
|
38
38
|
var require_sync = __commonJS({
|
|
39
|
-
"
|
|
39
|
+
"../../../node_modules/totalist/sync/index.js"(exports) {
|
|
40
40
|
var { join: join2, resolve: resolve2 } = __require("path"), { readdirSync, statSync } = __require("fs");
|
|
41
41
|
function totalist(dir, callback, pre = "") {
|
|
42
42
|
dir = resolve2(".", dir);
|
|
@@ -48,9 +48,9 @@ var require_sync = __commonJS({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
//
|
|
51
|
+
// ../../../node_modules/@polka/url/build.js
|
|
52
52
|
var require_build = __commonJS({
|
|
53
|
-
"
|
|
53
|
+
"../../../node_modules/@polka/url/build.js"(exports) {
|
|
54
54
|
var qs = __require("querystring");
|
|
55
55
|
function parse2(req) {
|
|
56
56
|
let raw = req.url;
|
|
@@ -68,9 +68,9 @@ var require_build = __commonJS({
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
//
|
|
71
|
+
// ../../../node_modules/mrmime/index.js
|
|
72
72
|
var require_mrmime = __commonJS({
|
|
73
|
-
"
|
|
73
|
+
"../../../node_modules/mrmime/index.js"(exports) {
|
|
74
74
|
var mimes = {
|
|
75
75
|
"3g2": "video/3gpp2",
|
|
76
76
|
"3gp": "video/3gpp",
|
|
@@ -520,9 +520,9 @@ var require_mrmime = __commonJS({
|
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
522
|
|
|
523
|
-
//
|
|
523
|
+
// ../../../node_modules/sirv/build.js
|
|
524
524
|
var require_build2 = __commonJS({
|
|
525
|
-
"
|
|
525
|
+
"../../../node_modules/sirv/build.js"(exports, module) {
|
|
526
526
|
var fs = __require("fs"), { join: join2, normalize: normalize2, resolve: resolve2 } = __require("path"), { totalist } = require_sync(), { parse: parse2 } = require_build(), { lookup } = require_mrmime(), noop = () => {
|
|
527
527
|
};
|
|
528
528
|
function isMatch(uri, arr) {
|
|
@@ -630,7 +630,7 @@ import {
|
|
|
630
630
|
} from "storybook/internal/server-errors";
|
|
631
631
|
import { checkWebpackVersion } from "@storybook/core-webpack";
|
|
632
632
|
|
|
633
|
-
//
|
|
633
|
+
// ../../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
634
634
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
635
635
|
function normalizeWindowsPath(input = "") {
|
|
636
636
|
return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.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-
|
|
12
|
+
import "../_node-chunks/chunk-NYVRFVQQ.js";
|
|
13
13
|
|
|
14
14
|
// src/loaders/export-order-loader.ts
|
|
15
15
|
import assert from "node:assert";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.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-
|
|
12
|
+
import "../_node-chunks/chunk-NYVRFVQQ.js";
|
|
13
13
|
|
|
14
14
|
// src/loaders/storybook-mock-transform-loader.ts
|
|
15
15
|
import { rewriteSbMockImportCalls } from "storybook/internal/mocking-utils";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.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-
|
|
12
|
+
import "../_node-chunks/chunk-NYVRFVQQ.js";
|
|
13
13
|
|
|
14
14
|
// src/loaders/webpack-automock-loader.ts
|
|
15
15
|
import { babelParser, getAutomockCode } from "storybook/internal/mocking-utils";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.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
|
__require
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-NYVRFVQQ.js";
|
|
15
15
|
|
|
16
16
|
// src/presets/custom-webpack-preset.ts
|
|
17
17
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hrnjicwslk8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hrnjicwslk8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hrnjicwslk8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hrnjicwslk8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hrnjicwslk8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hrnjicwslk8.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
|
getVirtualModules
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-VP5S5HOK.js";
|
|
15
|
+
import "../_node-chunks/chunk-NYVRFVQQ.js";
|
|
16
16
|
|
|
17
17
|
// src/presets/preview-preset.ts
|
|
18
18
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.3",
|
|
4
4
|
"description": "A Storybook builder to dev and build with Webpack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -50,12 +50,8 @@
|
|
|
50
50
|
"*.d.ts",
|
|
51
51
|
"!src/**/*"
|
|
52
52
|
],
|
|
53
|
-
"scripts": {
|
|
54
|
-
"check": "jiti ../../../scripts/check/check-package.ts",
|
|
55
|
-
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
56
|
-
},
|
|
57
53
|
"dependencies": {
|
|
58
|
-
"@storybook/core-webpack": "10.2.0-alpha.
|
|
54
|
+
"@storybook/core-webpack": "10.2.0-alpha.3",
|
|
59
55
|
"@vitest/mocker": "3.2.4",
|
|
60
56
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
61
57
|
"cjs-module-lexer": "^1.2.3",
|
|
@@ -82,7 +78,7 @@
|
|
|
82
78
|
"typescript": "^5.8.3"
|
|
83
79
|
},
|
|
84
80
|
"peerDependencies": {
|
|
85
|
-
"storybook": "^10.2.0-alpha.
|
|
81
|
+
"storybook": "^10.2.0-alpha.3"
|
|
86
82
|
},
|
|
87
83
|
"peerDependenciesMeta": {
|
|
88
84
|
"typescript": {
|