@storybook/builder-webpack5 10.6.0 → 11.0.0-alpha.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/_node-chunks/{chunk-DEOJKFVJ.js → chunk-637IMCYD.js} +6 -6
- package/dist/_node-chunks/{chunk-LAGN6IZK.js → chunk-RXUUKALS.js} +6 -6
- package/dist/index.js +8 -8
- 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 -13
- package/dist/presets/preview-preset.js +8 -8
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.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_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.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-637IMCYD.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__esm,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__require,
|
|
20
20
|
__toCommonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./_node-chunks/chunk-
|
|
22
|
+
} from "./_node-chunks/chunk-RXUUKALS.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/pretty-hrtime/index.js
|
|
25
25
|
var require_pretty_hrtime = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.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-RXUUKALS.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_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.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-RXUUKALS.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_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.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-RXUUKALS.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_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.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-RXUUKALS.js";
|
|
15
15
|
|
|
16
16
|
// src/presets/custom-webpack-preset.ts
|
|
17
17
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -160,12 +160,6 @@ var PLUGIN_NAME2 = "storybook-mock-plugin", WebpackMockPlugin = class {
|
|
|
160
160
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
161
161
|
import { logger as logger2 } from "storybook/internal/node-logger";
|
|
162
162
|
async function createDefaultWebpackConfig(storybookBaseConfig, options) {
|
|
163
|
-
if (options.presetsList?.some(
|
|
164
|
-
(preset) => /@storybook(\/|\\)preset-create-react-app/.test(
|
|
165
|
-
typeof preset == "string" ? preset : preset.name
|
|
166
|
-
)
|
|
167
|
-
))
|
|
168
|
-
return storybookBaseConfig;
|
|
169
163
|
let hasPostcssAddon = options.presetsList?.some(
|
|
170
164
|
(preset) => /@storybook(\/|\\)addon-postcss/.test(typeof preset == "string" ? preset : preset.name)
|
|
171
165
|
), cssLoaders = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_h6e23l9dq1n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h6e23l9dq1n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h6e23l9dq1n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h6e23l9dq1n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h6e23l9dq1n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h6e23l9dq1n.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-637IMCYD.js";
|
|
15
|
+
import "../_node-chunks/chunk-RXUUKALS.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": "
|
|
3
|
+
"version": "11.0.0-alpha.1",
|
|
4
4
|
"description": "A Storybook builder to dev and build with Webpack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"!src/**/*"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@storybook/core-webpack": "
|
|
55
|
+
"@storybook/core-webpack": "11.0.0-alpha.1",
|
|
56
56
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
57
57
|
"cjs-module-lexer": "^1.2.3",
|
|
58
58
|
"css-loader": "^7.1.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typescript": "^6.0.3"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"storybook": "^
|
|
83
|
+
"storybook": "^11.0.0-alpha.1"
|
|
84
84
|
},
|
|
85
85
|
"peerDependenciesMeta": {
|
|
86
86
|
"typescript": {
|