storybook 10.0.0-beta.0 → 10.0.0-beta.10

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.
Files changed (126) hide show
  1. package/assets/server/openBrowser.applescript +94 -0
  2. package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
  3. package/dist/_browser-chunks/{WithTooltip-2E62HIBN.js → WithTooltip-SK46ZJ2J.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
  5. package/dist/_browser-chunks/{chunk-FWKO3E35.js → chunk-BOOOPFZF.js} +10 -3
  6. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  7. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  8. package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-HMIIJ6UD.js} +6 -6
  9. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  10. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  11. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  12. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-PS3AOQI4.js} +48 -25
  13. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  14. package/dist/_browser-chunks/chunk-SHR3NNR3.js +5810 -0
  15. package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
  16. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  17. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  18. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-R46XOLMC.js} +1 -1
  19. package/dist/_node-chunks/{builder-manager-OW6YGKXV.js → builder-manager-SJGIDEN6.js} +45 -155
  20. package/dist/_node-chunks/camelcase-VZHWABQV.js +18 -0
  21. package/dist/_node-chunks/{chunk-6JSVPEAU.js → chunk-6CZW7AGN.js} +7 -7
  22. package/dist/_node-chunks/{chunk-CD3IP6HA.js → chunk-6XT5OLNL.js} +12 -12
  23. package/dist/_node-chunks/{chunk-2H7LZ2SD.js → chunk-AHRH5RPR.js} +7 -7
  24. package/dist/_node-chunks/{chunk-5HLANIBM.js → chunk-AOH6ABSV.js} +7 -7
  25. package/dist/_node-chunks/chunk-C5V22GP7.js +79 -0
  26. package/dist/_node-chunks/{chunk-IBXERYDG.js → chunk-FIROF4DV.js} +7 -7
  27. package/dist/_node-chunks/{chunk-I3YCPGZJ.js → chunk-GUJVZUYI.js} +7 -7
  28. package/dist/_node-chunks/chunk-IHPLRRAR.js +4741 -0
  29. package/dist/_node-chunks/{chunk-7TISOZS6.js → chunk-JMXKCRWR.js} +30 -21
  30. package/dist/_node-chunks/{chunk-YWGNEBRO.js → chunk-JUMUXWEV.js} +162 -103
  31. package/dist/_node-chunks/{chunk-UIREEOC7.js → chunk-KGX33KXX.js} +7 -7
  32. package/dist/_node-chunks/{chunk-3QB3ZG6H.js → chunk-KLVABNEU.js} +7 -7
  33. package/dist/_node-chunks/{chunk-H5LTFJHQ.js → chunk-OL6DY6BT.js} +631 -752
  34. package/dist/_node-chunks/{chunk-X5GAZ3EW.js → chunk-ONJV3K2L.js} +399 -116
  35. package/dist/_node-chunks/{chunk-LKB7KRSV.js → chunk-PTHTD4RO.js} +223 -243
  36. package/dist/_node-chunks/{chunk-UHHZPSP7.js → chunk-QQ3Z5KGJ.js} +6 -6
  37. package/dist/_node-chunks/{chunk-MUD3GH3L.js → chunk-QRTDDTZJ.js} +9 -9
  38. package/dist/_node-chunks/chunk-R54K4KSM.js +1540 -0
  39. package/dist/_node-chunks/{chunk-IQAUGVYR.js → chunk-S2LZC6JK.js} +8 -8
  40. package/dist/_node-chunks/chunk-SFJFSPRT.js +62 -0
  41. package/dist/_node-chunks/{chunk-LH3BEEIR.js → chunk-SSN5PKIY.js} +6 -6
  42. package/dist/_node-chunks/{chunk-NOQITS3C.js → chunk-SXR2DITB.js} +7 -7
  43. package/dist/_node-chunks/{chunk-FWUE7SRE.js → chunk-TH5QVQRL.js} +7 -7
  44. package/dist/_node-chunks/chunk-U34NWAU2.js +18 -0
  45. package/dist/_node-chunks/{chunk-FBMMEEO4.js → chunk-UV3CZ3KS.js} +7 -7
  46. package/dist/_node-chunks/{chunk-NZGJJABJ.js → chunk-UVUGJDAI.js} +60 -102
  47. package/dist/_node-chunks/{chunk-GZUNYRFU.js → chunk-VOUNSD2E.js} +7 -7
  48. package/dist/_node-chunks/chunk-WFCPBKQJ.js +64656 -0
  49. package/dist/_node-chunks/{chunk-BFXER3XW.js → chunk-XHF3WWNP.js} +623 -750
  50. package/dist/_node-chunks/{chunk-ANEKBWDX.js → chunk-XU45KXNQ.js} +16 -25
  51. package/dist/_node-chunks/{camelcase-2K3EMR6G.js → chunk-YHO6XR7U.js} +9 -8
  52. package/dist/_node-chunks/{dist-465RSKRC.js → dist-IIC5PBL7.js} +9 -9
  53. package/dist/_node-chunks/{globby-LJ3MVB6M.js → globby-CJACC3HJ.js} +17 -13
  54. package/dist/_node-chunks/{lib-OW3DENXB.js → lib-ZY4TKSOR.js} +40 -16
  55. package/dist/_node-chunks/{mdx-N42X6CFJ-PYX2IFUO.js → mdx-N42X6CFJ-3XNW3DFO.js} +8 -8
  56. package/dist/_node-chunks/{p-limit-X4OG45RB.js → p-limit-R2OFT5HE.js} +76 -10
  57. package/dist/_node-chunks/{plugin-ALTIQMDE.js → plugin-5XD5R2KD.js} +10 -10
  58. package/dist/_node-chunks/{plugin-GE36R32R.js → plugin-WAWVQMVR.js} +10 -12
  59. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-NLCAF7S6.js → webpack-inject-mocker-runtime-plugin-SCRGJLIS.js} +1307 -847
  60. package/dist/_node-chunks/{webpack-mock-plugin-BRYODMCC.js → webpack-mock-plugin-3VAXEGG2.js} +9 -11
  61. package/dist/babel/index.d.ts +1 -1
  62. package/dist/babel/index.js +11 -12
  63. package/dist/bin/core.js +638 -187
  64. package/dist/bin/dispatcher.js +11 -11
  65. package/dist/bin/loader.js +8 -8
  66. package/dist/cli/index.d.ts +62 -75
  67. package/dist/cli/index.js +66 -56
  68. package/dist/common/index.d.ts +3 -1
  69. package/dist/common/index.js +22 -22
  70. package/dist/components/index.d.ts +234 -2
  71. package/dist/components/index.js +74 -5741
  72. package/dist/core-events/index.d.ts +18 -2
  73. package/dist/core-events/index.js +7 -1
  74. package/dist/core-server/index.d.ts +540 -39
  75. package/dist/core-server/index.js +4647 -4182
  76. package/dist/core-server/presets/common-manager.js +1570 -1272
  77. package/dist/core-server/presets/common-override-preset.js +9 -9
  78. package/dist/core-server/presets/common-preset.js +691 -38
  79. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -11
  80. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -12
  81. package/dist/csf/index.d.ts +9 -4
  82. package/dist/csf/index.js +50 -15
  83. package/dist/csf-tools/index.d.ts +47 -6
  84. package/dist/csf-tools/index.js +9 -9
  85. package/dist/docs-tools/index.js +4 -4
  86. package/dist/instrumenter/index.js +1 -1
  87. package/dist/manager/globals-runtime.js +9233 -18113
  88. package/dist/manager/globals.d.ts +0 -4
  89. package/dist/manager/globals.js +1 -6
  90. package/dist/manager/runtime.js +13396 -11518
  91. package/dist/manager-api/index.d.ts +540 -32
  92. package/dist/manager-api/index.js +364 -90
  93. package/dist/manager-errors.d.ts +527 -0
  94. package/dist/node-logger/index.d.ts +1 -1
  95. package/dist/node-logger/index.js +1136 -662
  96. package/dist/preview/globals.js +1 -1
  97. package/dist/preview/runtime.js +12103 -21579
  98. package/dist/preview-api/index.d.ts +3 -3
  99. package/dist/preview-api/index.js +10 -10
  100. package/dist/preview-errors.d.ts +527 -0
  101. package/dist/router/index.d.ts +668 -10
  102. package/dist/router/index.js +2 -2
  103. package/dist/server-errors.d.ts +527 -0
  104. package/dist/server-errors.js +10 -10
  105. package/dist/telemetry/index.d.ts +1 -1
  106. package/dist/telemetry/index.js +23 -25
  107. package/dist/test/index.js +1874 -4024
  108. package/dist/theming/index.d.ts +2 -2
  109. package/dist/theming/index.js +6 -6
  110. package/dist/types/index.d.ts +553 -16
  111. package/dist/viewport/index.d.ts +36 -4
  112. package/dist/viewport/index.js +1 -1
  113. package/package.json +9 -46
  114. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  115. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  116. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  117. package/dist/_node-chunks/chunk-27W2Z6VL.js +0 -28502
  118. package/dist/_node-chunks/chunk-G46DWX7Z.js +0 -266
  119. package/dist/_node-chunks/chunk-GZZDIJIB.js +0 -80
  120. package/dist/_node-chunks/chunk-JDKH3XYB.js +0 -9845
  121. package/dist/_node-chunks/chunk-R7RKO2DC.js +0 -35783
  122. package/dist/_node-chunks/chunk-T23YQHYB.js +0 -62
  123. package/dist/_node-chunks/chunk-VKKLKNFC.js +0 -2377
  124. package/dist/_node-chunks/chunk-W6GKFQ7F.js +0 -87
  125. package/dist/_node-chunks/chunk-YUYBO6S7.js +0 -18
  126. package/dist/_node-chunks/default-browser-id-Z6WQ7DZA.js +0 -1719
@@ -1,266 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- Queue
14
- } from "./chunk-W6GKFQ7F.js";
15
- import {
16
- __name
17
- } from "./chunk-LH3BEEIR.js";
18
-
19
- // ../node_modules/find-up/index.js
20
- import path2 from "node:path";
21
-
22
- // ../node_modules/locate-path/index.js
23
- import process from "node:process";
24
- import path from "node:path";
25
- import fs, { promises as fsPromises } from "node:fs";
26
- import { fileURLToPath } from "node:url";
27
-
28
- // ../node_modules/locate-path/node_modules/p-limit/index.js
29
- function pLimit(concurrency) {
30
- if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
31
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
32
- }
33
- const queue = new Queue();
34
- let activeCount = 0;
35
- const next = /* @__PURE__ */ __name(() => {
36
- activeCount--;
37
- if (queue.size > 0) {
38
- queue.dequeue()();
39
- }
40
- }, "next");
41
- const run = /* @__PURE__ */ __name(async (fn, resolve, args) => {
42
- activeCount++;
43
- const result = (async () => fn(...args))();
44
- resolve(result);
45
- try {
46
- await result;
47
- } catch {
48
- }
49
- next();
50
- }, "run");
51
- const enqueue = /* @__PURE__ */ __name((fn, resolve, args) => {
52
- queue.enqueue(run.bind(void 0, fn, resolve, args));
53
- (async () => {
54
- await Promise.resolve();
55
- if (activeCount < concurrency && queue.size > 0) {
56
- queue.dequeue()();
57
- }
58
- })();
59
- }, "enqueue");
60
- const generator = /* @__PURE__ */ __name((fn, ...args) => new Promise((resolve) => {
61
- enqueue(fn, resolve, args);
62
- }), "generator");
63
- Object.defineProperties(generator, {
64
- activeCount: {
65
- get: /* @__PURE__ */ __name(() => activeCount, "get")
66
- },
67
- pendingCount: {
68
- get: /* @__PURE__ */ __name(() => queue.size, "get")
69
- },
70
- clearQueue: {
71
- value: /* @__PURE__ */ __name(() => {
72
- queue.clear();
73
- }, "value")
74
- }
75
- });
76
- return generator;
77
- }
78
- __name(pLimit, "pLimit");
79
-
80
- // ../node_modules/locate-path/node_modules/p-locate/index.js
81
- var EndError = class extends Error {
82
- static {
83
- __name(this, "EndError");
84
- }
85
- constructor(value) {
86
- super();
87
- this.value = value;
88
- }
89
- };
90
- var testElement = /* @__PURE__ */ __name(async (element, tester) => tester(await element), "testElement");
91
- var finder = /* @__PURE__ */ __name(async (element) => {
92
- const values = await Promise.all(element);
93
- if (values[1] === true) {
94
- throw new EndError(values[0]);
95
- }
96
- return false;
97
- }, "finder");
98
- async function pLocate(iterable, tester, {
99
- concurrency = Number.POSITIVE_INFINITY,
100
- preserveOrder = true
101
- } = {}) {
102
- const limit = pLimit(concurrency);
103
- const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
104
- const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
105
- try {
106
- await Promise.all(items.map((element) => checkLimit(finder, element)));
107
- } catch (error) {
108
- if (error instanceof EndError) {
109
- return error.value;
110
- }
111
- throw error;
112
- }
113
- }
114
- __name(pLocate, "pLocate");
115
-
116
- // ../node_modules/locate-path/index.js
117
- var typeMappings = {
118
- directory: "isDirectory",
119
- file: "isFile"
120
- };
121
- function checkType(type) {
122
- if (Object.hasOwnProperty.call(typeMappings, type)) {
123
- return;
124
- }
125
- throw new Error(`Invalid type specified: ${type}`);
126
- }
127
- __name(checkType, "checkType");
128
- var matchType = /* @__PURE__ */ __name((type, stat) => stat[typeMappings[type]](), "matchType");
129
- var toPath = /* @__PURE__ */ __name((urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath, "toPath");
130
- async function locatePath(paths, {
131
- cwd = process.cwd(),
132
- type = "file",
133
- allowSymlinks = true,
134
- concurrency,
135
- preserveOrder
136
- } = {}) {
137
- checkType(type);
138
- cwd = toPath(cwd);
139
- const statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;
140
- return pLocate(paths, async (path_) => {
141
- try {
142
- const stat = await statFunction(path.resolve(cwd, path_));
143
- return matchType(type, stat);
144
- } catch {
145
- return false;
146
- }
147
- }, { concurrency, preserveOrder });
148
- }
149
- __name(locatePath, "locatePath");
150
- function locatePathSync(paths, {
151
- cwd = process.cwd(),
152
- type = "file",
153
- allowSymlinks = true
154
- } = {}) {
155
- checkType(type);
156
- cwd = toPath(cwd);
157
- const statFunction = allowSymlinks ? fs.statSync : fs.lstatSync;
158
- for (const path_ of paths) {
159
- try {
160
- const stat = statFunction(path.resolve(cwd, path_), {
161
- throwIfNoEntry: false
162
- });
163
- if (!stat) {
164
- continue;
165
- }
166
- if (matchType(type, stat)) {
167
- return path_;
168
- }
169
- } catch {
170
- }
171
- }
172
- }
173
- __name(locatePathSync, "locatePathSync");
174
-
175
- // ../node_modules/find-up/node_modules/unicorn-magic/node.js
176
- import { fileURLToPath as fileURLToPath2 } from "node:url";
177
- function toPath2(urlOrPath) {
178
- return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
179
- }
180
- __name(toPath2, "toPath");
181
-
182
- // ../node_modules/find-up/index.js
183
- var findUpStop = Symbol("findUpStop");
184
- async function findUpMultiple(name, options = {}) {
185
- let directory = path2.resolve(toPath2(options.cwd) ?? "");
186
- const { root } = path2.parse(directory);
187
- const stopAt = path2.resolve(directory, toPath2(options.stopAt ?? root));
188
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
189
- const paths = [name].flat();
190
- const runMatcher = /* @__PURE__ */ __name(async (locateOptions) => {
191
- if (typeof name !== "function") {
192
- return locatePath(paths, locateOptions);
193
- }
194
- const foundPath = await name(locateOptions.cwd);
195
- if (typeof foundPath === "string") {
196
- return locatePath([foundPath], locateOptions);
197
- }
198
- return foundPath;
199
- }, "runMatcher");
200
- const matches = [];
201
- while (true) {
202
- const foundPath = await runMatcher({ ...options, cwd: directory });
203
- if (foundPath === findUpStop) {
204
- break;
205
- }
206
- if (foundPath) {
207
- matches.push(path2.resolve(directory, foundPath));
208
- }
209
- if (directory === stopAt || matches.length >= limit) {
210
- break;
211
- }
212
- directory = path2.dirname(directory);
213
- }
214
- return matches;
215
- }
216
- __name(findUpMultiple, "findUpMultiple");
217
- function findUpMultipleSync(name, options = {}) {
218
- let directory = path2.resolve(toPath2(options.cwd) ?? "");
219
- const { root } = path2.parse(directory);
220
- const stopAt = path2.resolve(directory, toPath2(options.stopAt) ?? root);
221
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
222
- const paths = [name].flat();
223
- const runMatcher = /* @__PURE__ */ __name((locateOptions) => {
224
- if (typeof name !== "function") {
225
- return locatePathSync(paths, locateOptions);
226
- }
227
- const foundPath = name(locateOptions.cwd);
228
- if (typeof foundPath === "string") {
229
- return locatePathSync([foundPath], locateOptions);
230
- }
231
- return foundPath;
232
- }, "runMatcher");
233
- const matches = [];
234
- while (true) {
235
- const foundPath = runMatcher({ ...options, cwd: directory });
236
- if (foundPath === findUpStop) {
237
- break;
238
- }
239
- if (foundPath) {
240
- matches.push(path2.resolve(directory, foundPath));
241
- }
242
- if (directory === stopAt || matches.length >= limit) {
243
- break;
244
- }
245
- directory = path2.dirname(directory);
246
- }
247
- return matches;
248
- }
249
- __name(findUpMultipleSync, "findUpMultipleSync");
250
- async function findUp(name, options = {}) {
251
- const matches = await findUpMultiple(name, { ...options, limit: 1 });
252
- return matches[0];
253
- }
254
- __name(findUp, "findUp");
255
- function findUpSync(name, options = {}) {
256
- const matches = findUpMultipleSync(name, { ...options, limit: 1 });
257
- return matches[0];
258
- }
259
- __name(findUpSync, "findUpSync");
260
-
261
- export {
262
- locatePathSync,
263
- findUpMultipleSync,
264
- findUp,
265
- findUpSync
266
- };
@@ -1,80 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- dirname,
14
- join
15
- } from "./chunk-5HLANIBM.js";
16
- import {
17
- __name
18
- } from "./chunk-LH3BEEIR.js";
19
-
20
- // src/shared/utils/module.ts
21
- import { statSync } from "node:fs";
22
- import { createRequire, register } from "node:module";
23
- import { win32 } from "node:path/win32";
24
- import { fileURLToPath, pathToFileURL } from "node:url";
25
- var importMetaResolve = /* @__PURE__ */ __name((...args) => {
26
- if (typeof import.meta.resolve !== "function" && process.env.VITEST === "true") {
27
- console.warn(
28
- "importMetaResolve from within Storybook is being used in a Vitest test, but it shouldn't be. Please report this at https://github.com/storybookjs/storybook/issues/new?template=bug_report.yml"
29
- );
30
- return pathToFileURL(args[0]).href;
31
- }
32
- return import.meta.resolve(...args);
33
- }, "importMetaResolve");
34
- var resolvePackageDir = /* @__PURE__ */ __name((pkg, parent) => {
35
- return dirname(fileURLToPath(importMetaResolve(join(pkg, "package.json"), parent)));
36
- }, "resolvePackageDir");
37
- var isTypescriptLoaderRegistered = false;
38
- async function importModule(path) {
39
- if (!isTypescriptLoaderRegistered) {
40
- const typescriptLoaderUrl = importMetaResolve("storybook/internal/bin/loader");
41
- register(typescriptLoaderUrl, import.meta.url);
42
- isTypescriptLoaderRegistered = true;
43
- }
44
- let mod;
45
- try {
46
- const resolvedPath = win32.isAbsolute(path) ? pathToFileURL(path).href : path;
47
- mod = await import(resolvedPath);
48
- } catch (importError) {
49
- try {
50
- const require2 = createRequire(import.meta.url);
51
- mod = require2(path);
52
- } catch (requireError) {
53
- throw importError;
54
- }
55
- }
56
- return mod.default ?? mod;
57
- }
58
- __name(importModule, "importModule");
59
- var safeResolveModule = /* @__PURE__ */ __name(({
60
- specifier,
61
- parent,
62
- extensions = [".mjs", ".js", ".cjs"]
63
- }) => {
64
- for (const extension of [""].concat(extensions)) {
65
- try {
66
- const resolvedPath = fileURLToPath(importMetaResolve(specifier + extension, parent));
67
- if (statSync(resolvedPath).isFile()) {
68
- return resolvedPath;
69
- }
70
- } catch (e) {
71
- }
72
- }
73
- }, "safeResolveModule");
74
-
75
- export {
76
- importMetaResolve,
77
- resolvePackageDir,
78
- importModule,
79
- safeResolveModule
80
- };