@storybook/nextjs-vite 10.1.0-alpha.8 → 10.1.0-beta.0
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/_browser-chunks/{chunk-I34DATQB.js → chunk-37RBXWOJ.js} +51 -101
- package/dist/_browser-chunks/{chunk-L5NVL7MD.js → chunk-SL3VIQZ3.js} +7 -13
- package/dist/_browser-chunks/react-18-PYSEDAWB.js +43 -0
- package/dist/_node-chunks/{chunk-NAXW245X.js → chunk-UXKTRIHR.js} +15 -20
- package/dist/_node-chunks/dist-HP4ZC37E.js +5431 -0
- package/dist/_node-chunks/jiti-L5ZJY2XO.js +2998 -0
- package/dist/export-mocks/cache/index.js +3 -8
- package/dist/export-mocks/headers/index.js +6 -29
- package/dist/export-mocks/navigation/index.js +15 -38
- package/dist/export-mocks/router/index.d.ts +4 -7
- package/dist/export-mocks/router/index.js +20 -54
- package/dist/index.js +2865 -8413
- package/dist/node/index.js +7 -10
- package/dist/preset.js +640 -1859
- package/dist/preview.js +2 -2
- package/dist/vite-plugin/index.js +8 -10
- package/package.json +6 -6
- package/dist/_browser-chunks/react-18-G7Q4PNHD.js +0 -71
- package/dist/_node-chunks/dist-B3ICSO74.js +0 -7476
- package/dist/_node-chunks/jiti-5HTHVXYV.js +0 -32417
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__export
|
|
3
|
-
|
|
4
|
-
} from "./chunk-L5NVL7MD.js";
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-SL3VIQZ3.js";
|
|
5
4
|
|
|
6
5
|
// src/preview.tsx
|
|
7
6
|
var preview_exports = {};
|
|
@@ -21,27 +20,18 @@ import * as React2 from "react";
|
|
|
21
20
|
import React, { useMemo } from "react";
|
|
22
21
|
import initHeadManager from "next/dist/client/head-manager";
|
|
23
22
|
import { HeadManagerContext } from "next/dist/shared/lib/head-manager-context.shared-runtime";
|
|
24
|
-
var HeadManagerProvider =
|
|
25
|
-
|
|
26
|
-
headManager.getIsSsr = () =>
|
|
27
|
-
|
|
28
|
-
}, "HeadManagerProvider");
|
|
29
|
-
var head_manager_provider_default = HeadManagerProvider;
|
|
23
|
+
var HeadManagerProvider = ({ children }) => {
|
|
24
|
+
let headManager = useMemo(initHeadManager, []);
|
|
25
|
+
return headManager.getIsSsr = () => !1, React.createElement(HeadManagerContext.Provider, { value: headManager }, children);
|
|
26
|
+
}, head_manager_provider_default = HeadManagerProvider;
|
|
30
27
|
|
|
31
28
|
// src/head-manager/decorator.tsx
|
|
32
|
-
var HeadManagerDecorator =
|
|
33
|
-
return React2.createElement(head_manager_provider_default, null, React2.createElement(Story, null));
|
|
34
|
-
}, "HeadManagerDecorator");
|
|
29
|
+
var HeadManagerDecorator = (Story) => React2.createElement(head_manager_provider_default, null, React2.createElement(Story, null));
|
|
35
30
|
|
|
36
31
|
// src/images/decorator.tsx
|
|
37
32
|
import * as React3 from "react";
|
|
38
33
|
import { ImageContext } from "sb-original/image-context";
|
|
39
|
-
var ImageDecorator =
|
|
40
|
-
if (!parameters2.nextjs?.image) {
|
|
41
|
-
return React3.createElement(Story, null);
|
|
42
|
-
}
|
|
43
|
-
return React3.createElement(ImageContext.Provider, { value: parameters2.nextjs.image }, React3.createElement(Story, null));
|
|
44
|
-
}, "ImageDecorator");
|
|
34
|
+
var ImageDecorator = (Story, { parameters: parameters2 }) => parameters2.nextjs?.image ? React3.createElement(ImageContext.Provider, { value: parameters2.nextjs.image }, React3.createElement(Story, null)) : React3.createElement(Story, null);
|
|
45
35
|
|
|
46
36
|
// src/routing/decorator.tsx
|
|
47
37
|
import * as React6 from "react";
|
|
@@ -61,43 +51,30 @@ import {
|
|
|
61
51
|
SearchParamsContext
|
|
62
52
|
} from "next/dist/shared/lib/hooks-client-context.shared-runtime";
|
|
63
53
|
import { PAGE_SEGMENT_KEY } from "next/dist/shared/lib/segment";
|
|
64
|
-
var getParallelRoutes =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
return [];
|
|
70
|
-
}, "getParallelRoutes");
|
|
71
|
-
var AppRouterProvider = /* @__PURE__ */ __name(({
|
|
54
|
+
var getParallelRoutes = (segmentsList) => {
|
|
55
|
+
let segment = segmentsList.shift();
|
|
56
|
+
return segment ? [segment, { children: getParallelRoutes(segmentsList) }] : [];
|
|
57
|
+
}, AppRouterProvider = ({
|
|
72
58
|
children,
|
|
73
59
|
routeParams
|
|
74
60
|
}) => {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const pathParams = useMemo2(() => {
|
|
78
|
-
const params = {};
|
|
79
|
-
const currentSegments = routeParams.segments;
|
|
61
|
+
let { pathname, query, segments = [] } = routeParams, tree = [pathname, { children: getParallelRoutes([...segments]) }], pathParams = useMemo2(() => {
|
|
62
|
+
let params = {}, currentSegments = routeParams.segments;
|
|
80
63
|
if (currentSegments) {
|
|
81
64
|
if (Array.isArray(currentSegments)) {
|
|
82
|
-
for (
|
|
83
|
-
if (Array.isArray(segmentEntry) && segmentEntry.length === 2 && typeof segmentEntry[0]
|
|
84
|
-
|
|
85
|
-
const value = segmentEntry[1];
|
|
65
|
+
for (let segmentEntry of currentSegments)
|
|
66
|
+
if (Array.isArray(segmentEntry) && segmentEntry.length === 2 && typeof segmentEntry[0] == "string") {
|
|
67
|
+
let key = segmentEntry[0], value = segmentEntry[1];
|
|
86
68
|
params[key] = value;
|
|
87
69
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (Object.prototype.hasOwnProperty.call(segmentObject, key)) {
|
|
93
|
-
params[key] = segmentObject[key];
|
|
94
|
-
}
|
|
95
|
-
}
|
|
70
|
+
} else if (typeof currentSegments == "object" && !Array.isArray(currentSegments)) {
|
|
71
|
+
let segmentObject = currentSegments;
|
|
72
|
+
for (let key in segmentObject)
|
|
73
|
+
Object.prototype.hasOwnProperty.call(segmentObject, key) && (params[key] = segmentObject[key]);
|
|
96
74
|
}
|
|
97
75
|
}
|
|
98
76
|
return params;
|
|
99
|
-
}, [routeParams.segments])
|
|
100
|
-
const newLazyCacheNode = {
|
|
77
|
+
}, [routeParams.segments]), newLazyCacheNode = {
|
|
101
78
|
lazyData: null,
|
|
102
79
|
rsc: null,
|
|
103
80
|
prefetchRsc: null,
|
|
@@ -117,10 +94,10 @@ var AppRouterProvider = /* @__PURE__ */ __name(({
|
|
|
117
94
|
buildId: "storybook",
|
|
118
95
|
tree,
|
|
119
96
|
focusAndScrollRef: {
|
|
120
|
-
apply:
|
|
97
|
+
apply: !1,
|
|
121
98
|
hashFragment: null,
|
|
122
99
|
segmentPaths: [tree],
|
|
123
|
-
onlyHashChange:
|
|
100
|
+
onlyHashChange: !1
|
|
124
101
|
},
|
|
125
102
|
nextUrl: pathname
|
|
126
103
|
}
|
|
@@ -148,64 +125,47 @@ var AppRouterProvider = /* @__PURE__ */ __name(({
|
|
|
148
125
|
children
|
|
149
126
|
))
|
|
150
127
|
))));
|
|
151
|
-
}
|
|
128
|
+
};
|
|
152
129
|
|
|
153
130
|
// src/routing/page-router-provider.tsx
|
|
154
131
|
import React5 from "react";
|
|
155
132
|
import { getRouter as getRouter2 } from "@storybook/nextjs-vite/router.mock";
|
|
156
133
|
import { RouterContext } from "next/dist/shared/lib/router-context.shared-runtime";
|
|
157
|
-
var PageRouterProvider =
|
|
134
|
+
var PageRouterProvider = ({ children }) => React5.createElement(RouterContext.Provider, { value: getRouter2() }, children);
|
|
158
135
|
|
|
159
136
|
// src/routing/decorator.tsx
|
|
160
137
|
var defaultRouterParams = {
|
|
161
138
|
pathname: "/",
|
|
162
139
|
query: {}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
140
|
+
}, RouterDecorator = (Story, { parameters: parameters2 }) => parameters2.nextjs?.appDirectory ?? !1 ? AppRouterProvider ? React6.createElement(
|
|
141
|
+
AppRouterProvider,
|
|
142
|
+
{
|
|
143
|
+
routeParams: {
|
|
144
|
+
...defaultRouterParams,
|
|
145
|
+
...parameters2.nextjs?.navigation
|
|
169
146
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
routeParams: {
|
|
174
|
-
...defaultRouterParams,
|
|
175
|
-
...parameters2.nextjs?.navigation
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
React6.createElement(RedirectBoundary, null, React6.createElement(Story, null))
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
return React6.createElement(PageRouterProvider, null, React6.createElement(Story, null));
|
|
182
|
-
}, "RouterDecorator");
|
|
147
|
+
},
|
|
148
|
+
React6.createElement(RedirectBoundary, null, React6.createElement(Story, null))
|
|
149
|
+
) : null : React6.createElement(PageRouterProvider, null, React6.createElement(Story, null));
|
|
183
150
|
|
|
184
151
|
// src/styledJsx/decorator.tsx
|
|
185
152
|
import * as React7 from "react";
|
|
186
153
|
import { StyleRegistry } from "styled-jsx";
|
|
187
|
-
var StyledJsxDecorator =
|
|
154
|
+
var StyledJsxDecorator = (Story) => React7.createElement(StyleRegistry, null, React7.createElement(Story, null));
|
|
188
155
|
|
|
189
156
|
// src/preview.tsx
|
|
190
157
|
function addNextHeadCount() {
|
|
191
|
-
|
|
192
|
-
meta.name = "next-head-count";
|
|
193
|
-
meta.content = "0";
|
|
194
|
-
document.head.appendChild(meta);
|
|
158
|
+
let meta = document.createElement("meta");
|
|
159
|
+
meta.name = "next-head-count", meta.content = "0", document.head.appendChild(meta);
|
|
195
160
|
}
|
|
196
|
-
__name(addNextHeadCount, "addNextHeadCount");
|
|
197
161
|
function isAsyncClientComponentError(error) {
|
|
198
|
-
return typeof error
|
|
162
|
+
return typeof error == "string" && (error.includes("Only Server Components can be async at the moment.") || error.includes("A component was suspended by an uncached promise.") || error.includes("async/await is not yet supported in Client Components"));
|
|
199
163
|
}
|
|
200
|
-
__name(isAsyncClientComponentError, "isAsyncClientComponentError");
|
|
201
164
|
addNextHeadCount();
|
|
202
165
|
var origConsoleError = globalThis.console.error;
|
|
203
166
|
globalThis.console.error = (...args) => {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
origConsoleError.apply(globalThis.console, args);
|
|
167
|
+
let error = args[0];
|
|
168
|
+
isNextRouterError(error) || isAsyncClientComponentError(error) || origConsoleError.apply(globalThis.console, args);
|
|
209
169
|
};
|
|
210
170
|
globalThis.addEventListener("error", (ev) => {
|
|
211
171
|
if (isNextRouterError(ev.error) || isAsyncClientComponentError(ev.error)) {
|
|
@@ -213,37 +173,27 @@ globalThis.addEventListener("error", (ev) => {
|
|
|
213
173
|
return;
|
|
214
174
|
}
|
|
215
175
|
});
|
|
216
|
-
var asDecorator =
|
|
217
|
-
var decorators = [
|
|
176
|
+
var asDecorator = (decorator) => decorator, decorators = [
|
|
218
177
|
asDecorator(StyledJsxDecorator),
|
|
219
178
|
asDecorator(ImageDecorator),
|
|
220
179
|
asDecorator(RouterDecorator),
|
|
221
180
|
asDecorator(HeadManagerDecorator)
|
|
222
|
-
]
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
locale: globals.locale,
|
|
230
|
-
...router
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
}, "loaders");
|
|
234
|
-
var parameters = {
|
|
181
|
+
], loaders = async ({ globals, parameters: parameters2 }) => {
|
|
182
|
+
let { router, appDirectory } = parameters2.nextjs ?? {};
|
|
183
|
+
appDirectory ? createNavigation(router) : createRouter({
|
|
184
|
+
locale: globals.locale,
|
|
185
|
+
...router
|
|
186
|
+
});
|
|
187
|
+
}, parameters = {
|
|
235
188
|
docs: {
|
|
236
189
|
source: {
|
|
237
|
-
excludeDecorators:
|
|
190
|
+
excludeDecorators: !0
|
|
238
191
|
}
|
|
239
192
|
},
|
|
240
193
|
react: {
|
|
241
194
|
rootOptions: {
|
|
242
195
|
onCaughtError(error) {
|
|
243
|
-
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
console.error(error);
|
|
196
|
+
isNextRouterError(error) || console.error(error);
|
|
247
197
|
}
|
|
248
198
|
}
|
|
249
199
|
}
|
|
@@ -2,22 +2,17 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var
|
|
7
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __commonJS = (cb, mod) => function() {
|
|
9
7
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
8
|
};
|
|
11
9
|
var __export = (target, all) => {
|
|
12
10
|
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
12
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
17
14
|
for (let key of __getOwnPropNames(from))
|
|
18
|
-
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
15
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
16
|
return to;
|
|
22
17
|
};
|
|
23
18
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
@@ -25,12 +20,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
20
|
// file that has been converted to a CommonJS file using a Babel-
|
|
26
21
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
22
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable:
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
29
24
|
mod
|
|
30
25
|
));
|
|
31
26
|
|
|
32
27
|
export {
|
|
33
|
-
__name,
|
|
34
28
|
__commonJS,
|
|
35
29
|
__export,
|
|
36
30
|
__toESM
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import "./chunk-SL3VIQZ3.js";
|
|
2
|
+
|
|
3
|
+
// ../../lib/react-dom-shim/dist/react-18.js
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import * as ReactDOM from "react-dom/client";
|
|
6
|
+
var nodes = /* @__PURE__ */ new Map();
|
|
7
|
+
function getIsReactActEnvironment() {
|
|
8
|
+
return globalThis.IS_REACT_ACT_ENVIRONMENT;
|
|
9
|
+
}
|
|
10
|
+
var WithCallback = ({
|
|
11
|
+
callback,
|
|
12
|
+
children
|
|
13
|
+
}) => {
|
|
14
|
+
let once = React.useRef();
|
|
15
|
+
return React.useLayoutEffect(() => {
|
|
16
|
+
once.current !== callback && (once.current = callback, callback());
|
|
17
|
+
}, [callback]), children;
|
|
18
|
+
};
|
|
19
|
+
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
20
|
+
let resolve = null, reject = null;
|
|
21
|
+
return { promise: new Promise((res, rej) => {
|
|
22
|
+
resolve = res, reject = rej;
|
|
23
|
+
}), resolve, reject };
|
|
24
|
+
});
|
|
25
|
+
var renderElement = async (node, el, rootOptions) => {
|
|
26
|
+
let root = await getReactRoot(el, rootOptions);
|
|
27
|
+
if (getIsReactActEnvironment()) {
|
|
28
|
+
root.render(node);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let { promise, resolve } = Promise.withResolvers();
|
|
32
|
+
return root.render(React.createElement(WithCallback, { callback: resolve }, node)), promise;
|
|
33
|
+
}, unmountElement = (el, shouldUseNewRootApi) => {
|
|
34
|
+
let root = nodes.get(el);
|
|
35
|
+
root && (root.unmount(), nodes.delete(el));
|
|
36
|
+
}, getReactRoot = async (el, rootOptions) => {
|
|
37
|
+
let root = nodes.get(el);
|
|
38
|
+
return root || (root = ReactDOM.createRoot(el, rootOptions), nodes.set(el, root)), root;
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
renderElement,
|
|
42
|
+
unmountElement
|
|
43
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7fnhscgp4ca from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7fnhscgp4ca from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7fnhscgp4ca from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7fnhscgp4ca.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7fnhscgp4ca.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7fnhscgp4ca.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,27 +13,23 @@ var __create = Object.create;
|
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
14
14
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
15
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
20
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
16
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
+
var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
|
|
18
|
+
get: (a, b) => (typeof require < "u" ? require : a)[b]
|
|
21
19
|
}) : x)(function(x) {
|
|
22
|
-
if (typeof require
|
|
20
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
23
21
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
24
22
|
});
|
|
25
|
-
var __esm = (fn, res) => function
|
|
23
|
+
var __esm = (fn, res) => function() {
|
|
26
24
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
27
25
|
};
|
|
28
|
-
var __commonJS = (cb, mod) => function
|
|
26
|
+
var __commonJS = (cb, mod) => function() {
|
|
29
27
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
30
28
|
};
|
|
31
29
|
var __copyProps = (to, from, except, desc) => {
|
|
32
|
-
if (from && typeof from
|
|
30
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
33
31
|
for (let key of __getOwnPropNames(from))
|
|
34
|
-
|
|
35
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
36
|
-
}
|
|
32
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
37
33
|
return to;
|
|
38
34
|
};
|
|
39
35
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
@@ -41,12 +37,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
41
37
|
// file that has been converted to a CommonJS file using a Babel-
|
|
42
38
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
43
39
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
44
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable:
|
|
40
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
45
41
|
mod
|
|
46
42
|
));
|
|
47
43
|
|
|
48
44
|
export {
|
|
49
|
-
__name,
|
|
50
45
|
__require,
|
|
51
46
|
__esm,
|
|
52
47
|
__commonJS,
|