@storybook/builder-webpack5 10.6.1 → 10.6.2
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-5KECLOC4.js → chunk-LST6OSPT.js} +6 -6
- package/dist/_node-chunks/{chunk-2U3UNLOA.js → chunk-O2FHTRAG.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 -7
- package/dist/presets/preview-preset.js +14 -11
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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-LST6OSPT.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-O2FHTRAG.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_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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-O2FHTRAG.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_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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-O2FHTRAG.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_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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-O2FHTRAG.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_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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-O2FHTRAG.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_0b9l5jdh3jci from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0b9l5jdh3jci from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0b9l5jdh3jci.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0b9l5jdh3jci.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0b9l5jdh3jci.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-LST6OSPT.js";
|
|
15
|
+
import "../_node-chunks/chunk-O2FHTRAG.js";
|
|
16
16
|
|
|
17
17
|
// src/presets/preview-preset.ts
|
|
18
18
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
@@ -83,7 +83,8 @@ var { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin } = webpackModule
|
|
|
83
83
|
nonNormalizedStories,
|
|
84
84
|
modulesCount,
|
|
85
85
|
build,
|
|
86
|
-
tagsOptions
|
|
86
|
+
tagsOptions,
|
|
87
|
+
security
|
|
87
88
|
] = await Promise.all([
|
|
88
89
|
presets.apply("core"),
|
|
89
90
|
presets.apply("frameworkOptions"),
|
|
@@ -97,7 +98,8 @@ var { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin } = webpackModule
|
|
|
97
98
|
presets.apply("stories", []),
|
|
98
99
|
options.cache?.get("modulesCount", 1e3),
|
|
99
100
|
options.presets.apply("build"),
|
|
100
|
-
presets.apply("tags", {})
|
|
101
|
+
presets.apply("tags", {}),
|
|
102
|
+
presets.apply("security")
|
|
101
103
|
]), stories = normalizeStories(nonNormalizedStories, {
|
|
102
104
|
configDir: options.configDir,
|
|
103
105
|
workingDir
|
|
@@ -166,7 +168,8 @@ var { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin } = webpackModule
|
|
|
166
168
|
})),
|
|
167
169
|
DOCS_OPTIONS: docsOptions,
|
|
168
170
|
TAGS_OPTIONS: tagsOptions,
|
|
169
|
-
...build?.test?.disableBlocks ? { __STORYBOOK_BLOCKS_EMPTY_MODULE__: {} } : {}
|
|
171
|
+
...build?.test?.disableBlocks ? { __STORYBOOK_BLOCKS_EMPTY_MODULE__: {} } : {},
|
|
172
|
+
...security?.insecureIframeMessaging ? { INSECURE_IFRAME_MESSAGING: !0 } : {}
|
|
170
173
|
},
|
|
171
174
|
headHtmlSnippet,
|
|
172
175
|
bodyHtmlSnippet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.2",
|
|
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": "10.6.
|
|
55
|
+
"@storybook/core-webpack": "10.6.2",
|
|
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": "^10.6.
|
|
83
|
+
"storybook": "^10.6.2"
|
|
84
84
|
},
|
|
85
85
|
"peerDependenciesMeta": {
|
|
86
86
|
"typescript": {
|