storybook-builder-rsbuild 2.1.6 → 3.0.0-beta.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.
@@ -1,61 +1,182 @@
1
- (() => {
2
- "use strict";
3
- var __webpack_modules__ = {
4
- 830: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: !0 });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if ((from && typeof from == "object") || typeof from == "function")
15
- for (let key of __getOwnPropNames(from))
16
- !__hasOwnProp.call(to, key) &&
17
- key !== except &&
18
- __defProp(to, key, {
19
- get: () => from[key],
20
- enumerable:
21
- !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
22
- });
23
- return to;
24
- };
25
- var __toCommonJS = (mod) =>
26
- __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
- var index_exports = {};
28
- __export(index_exports, {
29
- checkWebpackVersion: () => checkWebpackVersion,
30
- loadCustomWebpackConfig: () => loadCustomWebpackConfig,
31
- mergeConfigs: () => mergeConfigs,
32
- toImportFn: () => toImportFn,
33
- toImportFnPart: () => toImportFnPart,
34
- toRequireContext: () => toRequireContext,
35
- toRequireContextString: () => toRequireContextString,
36
- webpackIncludeRegexp: () => webpackIncludeRegexp,
37
- });
38
- module.exports = __toCommonJS(index_exports);
39
- var import_node_path = __nccwpck_require__(928),
40
- import_common = __nccwpck_require__(253),
41
- webpackConfigs = ["webpack.config", "webpackfile"],
42
- loadCustomWebpackConfig = (configDir) =>
43
- (0, import_common.serverRequire)(
44
- webpackConfigs.map((configName) =>
45
- (0, import_node_path.resolve)(configDir, configName),
46
- ),
1
+ import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_storybook_internal_common_7991bda6__ from "storybook/internal/common";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_storybook_internal_node_logger_87de4309__ from "storybook/internal/node-logger";
4
+ var __webpack_modules__ = {
5
+ 980: (__unused_webpack_module, exports) => {
6
+ var __webpack_unused_export__;
7
+ __webpack_unused_export__ = { value: true };
8
+ exports.TW = void 0;
9
+ function dedent(templ) {
10
+ var values = [];
11
+ for (var _i = 1; _i < arguments.length; _i++) {
12
+ values[_i - 1] = arguments[_i];
13
+ }
14
+ var strings = Array.from(typeof templ === "string" ? [templ] : templ);
15
+ strings[strings.length - 1] = strings[strings.length - 1].replace(
16
+ /\r?\n([\t ]*)$/,
17
+ "",
18
+ );
19
+ var indentLengths = strings.reduce(function (arr, str) {
20
+ var matches = str.match(/\n([\t ]+|(?!\s).)/g);
21
+ if (matches) {
22
+ return arr.concat(
23
+ matches.map(function (match) {
24
+ var _a, _b;
25
+ return (_b =
26
+ (_a = match.match(/[\t ]/g)) === null || _a === void 0
27
+ ? void 0
28
+ : _a.length) !== null && _b !== void 0
29
+ ? _b
30
+ : 0;
31
+ }),
47
32
  );
48
- var import_node_logger = __nccwpck_require__(519),
49
- import_ts_dedent = __nccwpck_require__(980),
50
- checkWebpackVersion = (webpack, specifier, caption) => {
51
- if (!webpack.version) {
52
- import_node_logger.logger.info(
53
- "Skipping webpack version check, no version available",
54
- );
55
- return;
56
- }
57
- webpack.version !== specifier &&
58
- import_node_logger.logger.warn(import_ts_dedent.dedent`
33
+ }
34
+ return arr;
35
+ }, []);
36
+ if (indentLengths.length) {
37
+ var pattern_1 = new RegExp(
38
+ "\n[\t ]{" + Math.min.apply(Math, indentLengths) + "}",
39
+ "g",
40
+ );
41
+ strings = strings.map(function (str) {
42
+ return str.replace(pattern_1, "\n");
43
+ });
44
+ }
45
+ strings[0] = strings[0].replace(/^\r?\n/, "");
46
+ var string = strings[0];
47
+ values.forEach(function (value, i) {
48
+ var endentations = string.match(/(?:^|\n)( *)$/);
49
+ var endentation = endentations ? endentations[1] : "";
50
+ var indentedValue = value;
51
+ if (typeof value === "string" && value.includes("\n")) {
52
+ indentedValue = String(value)
53
+ .split("\n")
54
+ .map(function (str, i) {
55
+ return i === 0 ? str : "" + endentation + str;
56
+ })
57
+ .join("\n");
58
+ }
59
+ string += indentedValue + strings[i + 1];
60
+ });
61
+ return string;
62
+ }
63
+ exports.TW = dedent;
64
+ __webpack_unused_export__ = dedent;
65
+ },
66
+ };
67
+ var __webpack_module_cache__ = {};
68
+ function __nccwpck_require__(moduleId) {
69
+ var cachedModule = __webpack_module_cache__[moduleId];
70
+ if (cachedModule !== undefined) {
71
+ return cachedModule.exports;
72
+ }
73
+ var module = (__webpack_module_cache__[moduleId] = { exports: {} });
74
+ var threw = true;
75
+ try {
76
+ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
77
+ threw = false;
78
+ } finally {
79
+ if (threw) delete __webpack_module_cache__[moduleId];
80
+ }
81
+ return module.exports;
82
+ }
83
+ (() => {
84
+ __nccwpck_require__.d = (exports, definition) => {
85
+ for (var key in definition) {
86
+ if (
87
+ __nccwpck_require__.o(definition, key) &&
88
+ !__nccwpck_require__.o(exports, key)
89
+ ) {
90
+ Object.defineProperty(exports, key, {
91
+ enumerable: true,
92
+ get: definition[key],
93
+ });
94
+ }
95
+ }
96
+ };
97
+ })();
98
+ (() => {
99
+ __nccwpck_require__.o = (obj, prop) =>
100
+ Object.prototype.hasOwnProperty.call(obj, prop);
101
+ })();
102
+ if (typeof __nccwpck_require__ !== "undefined")
103
+ __nccwpck_require__.ab =
104
+ new URL(".", import.meta.url).pathname.slice(
105
+ import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0,
106
+ -1,
107
+ ) + "/";
108
+ var __webpack_exports__ = {};
109
+ __nccwpck_require__.d(__webpack_exports__, {
110
+ il: () => checkWebpackVersion,
111
+ Tu: () => loadCustomWebpackConfig,
112
+ SV: () => mergeConfigs,
113
+ T1: () => toImportFn,
114
+ i8: () => toImportFnPart,
115
+ sg: () => toRequireContext,
116
+ HO: () => toRequireContextString,
117
+ hO: () => webpackIncludeRegexp,
118
+ });
119
+ const external_node_url_namespaceObject = __WEBPACK_EXTERNAL_createRequire(
120
+ import.meta.url,
121
+ )("node:url");
122
+ const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(
123
+ import.meta.url,
124
+ )("node:path");
125
+ const external_node_module_namespaceObject = __WEBPACK_EXTERNAL_createRequire(
126
+ import.meta.url,
127
+ )("node:module");
128
+ var x = (y) => {
129
+ var x = {};
130
+ __nccwpck_require__.d(x, y);
131
+ return x;
132
+ };
133
+ var y = (x) => () => x;
134
+ const common_namespaceObject = x({
135
+ ["globToRegexp"]: () =>
136
+ __WEBPACK_EXTERNAL_MODULE_storybook_internal_common_7991bda6__.globToRegexp,
137
+ ["serverRequire"]: () =>
138
+ __WEBPACK_EXTERNAL_MODULE_storybook_internal_common_7991bda6__.serverRequire,
139
+ });
140
+ var node_logger_x = (y) => {
141
+ var x = {};
142
+ __nccwpck_require__.d(x, y);
143
+ return x;
144
+ };
145
+ var node_logger_y = (x) => () => x;
146
+ const node_logger_namespaceObject = node_logger_x({
147
+ ["logger"]: () =>
148
+ __WEBPACK_EXTERNAL_MODULE_storybook_internal_node_logger_87de4309__.logger,
149
+ });
150
+ var dist = __nccwpck_require__(980);
151
+ var dist_filename = external_node_url_namespaceObject.fileURLToPath(
152
+ import.meta.url,
153
+ );
154
+ var dist_dirname = external_node_path_namespaceObject.dirname(dist_filename);
155
+ var dist_require = external_node_module_namespaceObject.createRequire(
156
+ import.meta.url,
157
+ );
158
+ var __defProp = Object.defineProperty;
159
+ var __name = (target, value) =>
160
+ __defProp(target, "name", { value, configurable: true });
161
+ var webpackConfigs = ["webpack.config", "webpackfile"];
162
+ var loadCustomWebpackConfig = __name(
163
+ async (configDir) =>
164
+ (0, common_namespaceObject.serverRequire)(
165
+ webpackConfigs.map((configName) =>
166
+ (0, external_node_path_namespaceObject.resolve)(configDir, configName),
167
+ ),
168
+ ),
169
+ "loadCustomWebpackConfig",
170
+ );
171
+ var checkWebpackVersion = __name((webpack, specifier, caption) => {
172
+ if (!webpack.version) {
173
+ node_logger_namespaceObject.logger.info(
174
+ "Skipping webpack version check, no version available",
175
+ );
176
+ return;
177
+ }
178
+ if (webpack.version !== specifier) {
179
+ node_logger_namespaceObject.logger.warn((0, dist.TW)`
59
180
  Unexpected webpack version in ${caption}:
60
181
  - Received '${webpack.version}'
61
182
  - Expected '${specifier}'
@@ -64,109 +185,108 @@
64
185
 
65
186
  For more info about Webpack 5 support: https://gist.github.com/shilman/8856ea1786dcd247139b47b270912324#troubleshooting
66
187
  `);
67
- };
68
- function mergePluginsField(defaultPlugins = [], customPlugins = []) {
69
- return [...defaultPlugins, ...customPlugins];
70
- }
71
- function mergeRulesField(defaultRules = [], customRules = []) {
72
- return [...defaultRules, ...customRules];
73
- }
74
- function mergeExtensionsField(
75
- { extensions: defaultExtensions = [] },
76
- { extensions: customExtensions = [] },
77
- ) {
78
- return [...defaultExtensions, ...customExtensions];
79
- }
80
- function mergeAliasField(
81
- { alias: defaultAlias = {} },
82
- { alias: customAlias = {} },
83
- ) {
84
- return { ...defaultAlias, ...customAlias };
85
- }
86
- function mergeModuleField(a, b) {
87
- return {
88
- ...a,
89
- ...b,
90
- rules: mergeRulesField(a.rules || [], b.rules || []),
91
- };
92
- }
93
- function mergeResolveField(
94
- { resolve: defaultResolve = {} },
95
- { resolve: customResolve = {} },
96
- ) {
97
- return {
98
- ...defaultResolve,
99
- ...customResolve,
100
- alias: mergeAliasField(defaultResolve, customResolve),
101
- extensions: mergeExtensionsField(defaultResolve, customResolve),
102
- };
103
- }
104
- function mergeOptimizationField(
105
- { optimization: defaultOptimization = {} },
106
- { optimization: customOptimization = {} },
107
- ) {
108
- return { ...defaultOptimization, ...customOptimization };
109
- }
110
- function mergeConfigs(config, customConfig) {
111
- return {
112
- ...customConfig,
113
- ...config,
114
- devtool: customConfig.devtool || config.devtool,
115
- plugins: mergePluginsField(config.plugins, customConfig.plugins),
116
- module: mergeModuleField(
117
- config.module || {},
118
- customConfig.module || {},
119
- ),
120
- resolve: mergeResolveField(config, customConfig),
121
- optimization: mergeOptimizationField(config, customConfig),
122
- };
123
- }
124
- var import_common2 = __nccwpck_require__(253),
125
- import_ts_dedent2 = __nccwpck_require__(980);
126
- function importPipeline() {
127
- let importGate = Promise.resolve();
128
- return async (importFn) => {
129
- await importGate;
130
- let moduleExportsPromise = importFn();
131
- return (
132
- (importGate = importGate.then(async () => {
133
- await moduleExportsPromise;
134
- })),
135
- moduleExportsPromise
136
- );
137
- };
138
- }
139
- function adjustRegexToExcludeNodeModules(originalRegex) {
140
- let originalRegexString = originalRegex.source,
141
- startsWithCaret = originalRegexString.startsWith("^"),
142
- excludeNodeModulesPattern = startsWithCaret
143
- ? "(?!.*node_modules)"
144
- : "^(?!.*node_modules)",
145
- adjustedRegexString = startsWithCaret
146
- ? `^${excludeNodeModulesPattern}${originalRegexString.substring(1)}`
147
- : excludeNodeModulesPattern + originalRegexString;
148
- return new RegExp(adjustedRegexString);
149
- }
150
- function webpackIncludeRegexp(specifier) {
151
- let { directory, files } = specifier,
152
- directoryWithoutLeadingDots = directory.replace(/^(\.+\/)+/, "/"),
153
- webpackIncludeGlob = [".", ".."].includes(directory)
154
- ? files
155
- : `${directoryWithoutLeadingDots}/${files}`,
156
- webpackIncludeRegexpWithCaret = webpackIncludeGlob.includes(
157
- "node_modules",
158
- )
159
- ? (0, import_common2.globToRegexp)(webpackIncludeGlob)
160
- : adjustRegexToExcludeNodeModules(
161
- (0, import_common2.globToRegexp)(webpackIncludeGlob),
162
- );
163
- return new RegExp(
164
- webpackIncludeRegexpWithCaret.source.replace(/^\^/, ""),
165
- );
166
- }
167
- function toImportFnPart(specifier) {
168
- let { directory, importPathMatcher } = specifier;
169
- return import_ts_dedent2.dedent`
188
+ }
189
+ }, "checkWebpackVersion");
190
+ function mergePluginsField(defaultPlugins = [], customPlugins = []) {
191
+ return [...defaultPlugins, ...customPlugins];
192
+ }
193
+ __name(mergePluginsField, "mergePluginsField");
194
+ function mergeRulesField(defaultRules = [], customRules = []) {
195
+ return [...defaultRules, ...customRules];
196
+ }
197
+ __name(mergeRulesField, "mergeRulesField");
198
+ function mergeExtensionsField(
199
+ { extensions: defaultExtensions = [] },
200
+ { extensions: customExtensions = [] },
201
+ ) {
202
+ return [...defaultExtensions, ...customExtensions];
203
+ }
204
+ __name(mergeExtensionsField, "mergeExtensionsField");
205
+ function mergeAliasField(
206
+ { alias: defaultAlias = {} },
207
+ { alias: customAlias = {} },
208
+ ) {
209
+ return { ...defaultAlias, ...customAlias };
210
+ }
211
+ __name(mergeAliasField, "mergeAliasField");
212
+ function mergeModuleField(a, b) {
213
+ return { ...a, ...b, rules: mergeRulesField(a.rules || [], b.rules || []) };
214
+ }
215
+ __name(mergeModuleField, "mergeModuleField");
216
+ function mergeResolveField(
217
+ { resolve: defaultResolve = {} },
218
+ { resolve: customResolve = {} },
219
+ ) {
220
+ return {
221
+ ...defaultResolve,
222
+ ...customResolve,
223
+ alias: mergeAliasField(defaultResolve, customResolve),
224
+ extensions: mergeExtensionsField(defaultResolve, customResolve),
225
+ };
226
+ }
227
+ __name(mergeResolveField, "mergeResolveField");
228
+ function mergeOptimizationField(
229
+ { optimization: defaultOptimization = {} },
230
+ { optimization: customOptimization = {} },
231
+ ) {
232
+ return { ...defaultOptimization, ...customOptimization };
233
+ }
234
+ __name(mergeOptimizationField, "mergeOptimizationField");
235
+ function mergeConfigs(config, customConfig) {
236
+ return {
237
+ ...customConfig,
238
+ ...config,
239
+ devtool: customConfig.devtool || config.devtool,
240
+ plugins: mergePluginsField(config.plugins, customConfig.plugins),
241
+ module: mergeModuleField(config.module || {}, customConfig.module || {}),
242
+ resolve: mergeResolveField(config, customConfig),
243
+ optimization: mergeOptimizationField(config, customConfig),
244
+ };
245
+ }
246
+ __name(mergeConfigs, "mergeConfigs");
247
+ function importPipeline() {
248
+ let importGate = Promise.resolve();
249
+ return async (importFn) => {
250
+ await importGate;
251
+ const moduleExportsPromise = importFn();
252
+ importGate = importGate.then(async () => {
253
+ await moduleExportsPromise;
254
+ });
255
+ return moduleExportsPromise;
256
+ };
257
+ }
258
+ __name(importPipeline, "importPipeline");
259
+ function adjustRegexToExcludeNodeModules(originalRegex) {
260
+ const originalRegexString = originalRegex.source;
261
+ const startsWithCaret = originalRegexString.startsWith("^");
262
+ const excludeNodeModulesPattern = startsWithCaret
263
+ ? "(?!.*node_modules)"
264
+ : "^(?!.*node_modules)";
265
+ const adjustedRegexString = startsWithCaret
266
+ ? `^${excludeNodeModulesPattern}${originalRegexString.substring(1)}`
267
+ : excludeNodeModulesPattern + originalRegexString;
268
+ return new RegExp(adjustedRegexString);
269
+ }
270
+ __name(adjustRegexToExcludeNodeModules, "adjustRegexToExcludeNodeModules");
271
+ function webpackIncludeRegexp(specifier) {
272
+ const { directory, files } = specifier;
273
+ const directoryWithoutLeadingDots = directory.replace(/^(\.+\/)+/, "/");
274
+ const webpackIncludeGlob = [".", ".."].includes(directory)
275
+ ? files
276
+ : `${directoryWithoutLeadingDots}/${files}`;
277
+ const webpackIncludeRegexpWithCaret = webpackIncludeGlob.includes(
278
+ "node_modules",
279
+ )
280
+ ? (0, common_namespaceObject.globToRegexp)(webpackIncludeGlob)
281
+ : adjustRegexToExcludeNodeModules(
282
+ (0, common_namespaceObject.globToRegexp)(webpackIncludeGlob),
283
+ );
284
+ return new RegExp(webpackIncludeRegexpWithCaret.source.replace(/^\^/, ""));
285
+ }
286
+ __name(webpackIncludeRegexp, "webpackIncludeRegexp");
287
+ function toImportFnPart(specifier) {
288
+ const { directory, importPathMatcher } = specifier;
289
+ return (0, dist.TW)`
170
290
  async (path) => {
171
291
  if (!${importPathMatcher}.exec(path)) {
172
292
  return;
@@ -181,17 +301,18 @@
181
301
  }
182
302
 
183
303
  `;
184
- }
185
- function toImportFn(stories, { needPipelinedImport } = {}) {
186
- let pipelinedImport = "const pipeline = (x) => x();";
187
- return (
188
- needPipelinedImport &&
189
- (pipelinedImport = `\n const importPipeline = ${importPipeline};\n const pipeline = importPipeline();\n `),
190
- import_ts_dedent2.dedent`
304
+ }
305
+ __name(toImportFnPart, "toImportFnPart");
306
+ function toImportFn(stories, { needPipelinedImport } = {}) {
307
+ let pipelinedImport = `const pipeline = (x) => x();`;
308
+ if (needPipelinedImport) {
309
+ pipelinedImport = `\n const importPipeline = ${importPipeline};\n const pipeline = importPipeline();\n `;
310
+ }
311
+ return (0, dist.TW)`
191
312
  ${pipelinedImport}
192
313
 
193
314
  const importers = [
194
- ${stories.map(toImportFnPart).join(`,\n`)}
315
+ ${stories.map(toImportFnPart).join(",\n")}
195
316
  ];
196
317
 
197
318
  export async function importFn(path) {
@@ -202,117 +323,38 @@
202
323
  }
203
324
  }
204
325
  }
205
- `
206
- );
207
- }
208
- var import_common3 = __nccwpck_require__(253),
209
- toRequireContext = (specifier) => {
210
- let { directory, files } = specifier,
211
- match = (0, import_common3.globToRegexp)(`./${files}`);
212
- return {
213
- path: directory,
214
- recursive: files.includes("**") || files.split("/").length > 1,
215
- match,
216
- };
217
- },
218
- toRequireContextString = (specifier) => {
219
- let { path: p, recursive: r, match: m } = toRequireContext(specifier);
220
- return `require.context('${p}', ${r}, ${m})`;
221
- };
222
- 0 && 0;
223
- },
224
- 980: (__unused_webpack_module, exports) => {
225
- Object.defineProperty(exports, "__esModule", { value: true });
226
- exports.dedent = void 0;
227
- function dedent(templ) {
228
- var values = [];
229
- for (var _i = 1; _i < arguments.length; _i++) {
230
- values[_i - 1] = arguments[_i];
231
- }
232
- var strings = Array.from(typeof templ === "string" ? [templ] : templ);
233
- strings[strings.length - 1] = strings[strings.length - 1].replace(
234
- /\r?\n([\t ]*)$/,
235
- "",
236
- );
237
- var indentLengths = strings.reduce(function (arr, str) {
238
- var matches = str.match(/\n([\t ]+|(?!\s).)/g);
239
- if (matches) {
240
- return arr.concat(
241
- matches.map(function (match) {
242
- var _a, _b;
243
- return (_b =
244
- (_a = match.match(/[\t ]/g)) === null || _a === void 0
245
- ? void 0
246
- : _a.length) !== null && _b !== void 0
247
- ? _b
248
- : 0;
249
- }),
250
- );
251
- }
252
- return arr;
253
- }, []);
254
- if (indentLengths.length) {
255
- var pattern_1 = new RegExp(
256
- "\n[\t ]{" + Math.min.apply(Math, indentLengths) + "}",
257
- "g",
258
- );
259
- strings = strings.map(function (str) {
260
- return str.replace(pattern_1, "\n");
261
- });
262
- }
263
- strings[0] = strings[0].replace(/^\r?\n/, "");
264
- var string = strings[0];
265
- values.forEach(function (value, i) {
266
- var endentations = string.match(/(?:^|\n)( *)$/);
267
- var endentation = endentations ? endentations[1] : "";
268
- var indentedValue = value;
269
- if (typeof value === "string" && value.includes("\n")) {
270
- indentedValue = String(value)
271
- .split("\n")
272
- .map(function (str, i) {
273
- return i === 0 ? str : "" + endentation + str;
274
- })
275
- .join("\n");
276
- }
277
- string += indentedValue + strings[i + 1];
278
- });
279
- return string;
280
- }
281
- exports.dedent = dedent;
282
- exports["default"] = dedent;
283
- },
284
- 928: (module) => {
285
- module.exports = require("path");
286
- },
287
- 253: (module) => {
288
- module.exports = require("storybook/internal/common");
289
- },
290
- 519: (module) => {
291
- module.exports = require("storybook/internal/node-logger");
292
- },
326
+ `;
327
+ }
328
+ __name(toImportFn, "toImportFn");
329
+ var toRequireContext = __name((specifier) => {
330
+ const { directory, files } = specifier;
331
+ const match = (0, common_namespaceObject.globToRegexp)(`./${files}`);
332
+ return {
333
+ path: directory,
334
+ recursive: files.includes("**") || files.split("/").length > 1,
335
+ match,
293
336
  };
294
- var __webpack_module_cache__ = {};
295
- function __nccwpck_require__(moduleId) {
296
- var cachedModule = __webpack_module_cache__[moduleId];
297
- if (cachedModule !== undefined) {
298
- return cachedModule.exports;
299
- }
300
- var module = (__webpack_module_cache__[moduleId] = { exports: {} });
301
- var threw = true;
302
- try {
303
- __webpack_modules__[moduleId](
304
- module,
305
- module.exports,
306
- __nccwpck_require__,
307
- );
308
- threw = false;
309
- } finally {
310
- if (threw) delete __webpack_module_cache__[moduleId];
311
- }
312
- return module.exports;
313
- }
314
- if (typeof __nccwpck_require__ !== "undefined")
315
- __nccwpck_require__.ab = __dirname + "/";
316
- var __webpack_exports__ = __nccwpck_require__(830);
317
- module.exports = __webpack_exports__;
318
- })();
337
+ }, "toRequireContext");
338
+ var toRequireContextString = __name((specifier) => {
339
+ const { path: p, recursive: r, match: m } = toRequireContext(specifier);
340
+ const result = `require.context('${p}', ${r}, ${m})`;
341
+ return result;
342
+ }, "toRequireContextString");
343
+ var __webpack_exports__checkWebpackVersion = __webpack_exports__.il;
344
+ var __webpack_exports__loadCustomWebpackConfig = __webpack_exports__.Tu;
345
+ var __webpack_exports__mergeConfigs = __webpack_exports__.SV;
346
+ var __webpack_exports__toImportFn = __webpack_exports__.T1;
347
+ var __webpack_exports__toImportFnPart = __webpack_exports__.i8;
348
+ var __webpack_exports__toRequireContext = __webpack_exports__.sg;
349
+ var __webpack_exports__toRequireContextString = __webpack_exports__.HO;
350
+ var __webpack_exports__webpackIncludeRegexp = __webpack_exports__.hO;
351
+ export {
352
+ __webpack_exports__checkWebpackVersion as checkWebpackVersion,
353
+ __webpack_exports__loadCustomWebpackConfig as loadCustomWebpackConfig,
354
+ __webpack_exports__mergeConfigs as mergeConfigs,
355
+ __webpack_exports__toImportFn as toImportFn,
356
+ __webpack_exports__toImportFnPart as toImportFnPart,
357
+ __webpack_exports__toRequireContext as toRequireContext,
358
+ __webpack_exports__toRequireContextString as toRequireContextString,
359
+ __webpack_exports__webpackIncludeRegexp as webpackIncludeRegexp,
360
+ };
@@ -1 +1 @@
1
- {"name":"@storybook/core-webpack","version":"9.1.15","funding":{"type":"opencollective","url":"https://opencollective.com/storybook"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"@storybook/core-webpack","version":"10.0.7","funding":{"type":"opencollective","url":"https://opencollective.com/storybook"},"license":"MIT","types":"index.d.ts","type":"module"}