@kasperpeulen/vitest-plugin-nextjs 0.0.0-alpha.0 → 0.1.0-alpha.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.
Files changed (250) hide show
  1. package/README.md +249 -2
  2. package/dist/_virtual/_rolldown/runtime.js +14 -0
  3. package/dist/action-ids.d.ts +18 -0
  4. package/dist/action-ids.js +44 -0
  5. package/dist/adapter.d.ts +8 -0
  6. package/dist/adapter.js +12 -0
  7. package/dist/app-requests.d.ts +63 -0
  8. package/dist/app-requests.js +253 -0
  9. package/dist/browser-context.d.ts +24 -0
  10. package/dist/browser-context.js +157 -0
  11. package/dist/build-output.d.ts +68 -0
  12. package/dist/build-output.js +216 -0
  13. package/dist/build.d.ts +26 -0
  14. package/dist/build.js +39 -0
  15. package/dist/built-files.d.ts +9 -0
  16. package/dist/built-files.js +22 -0
  17. package/dist/cache.d.ts +44 -0
  18. package/dist/cache.js +99 -0
  19. package/dist/client-components.d.ts +3 -0
  20. package/dist/client-components.js +4 -0
  21. package/dist/client-file-key.d.ts +5 -0
  22. package/dist/client-file-key.js +5 -0
  23. package/dist/client-files.d.ts +83 -0
  24. package/dist/client-files.js +186 -0
  25. package/dist/client-graph.d.ts +94 -0
  26. package/dist/client-graph.js +266 -0
  27. package/dist/client-modules.d.ts +10 -0
  28. package/dist/client-modules.js +43 -0
  29. package/dist/client.d.ts +42 -0
  30. package/dist/client.js +263 -0
  31. package/dist/commonjs.d.ts +44 -0
  32. package/dist/commonjs.js +111 -0
  33. package/dist/compat/browser/client.d.ts +19 -0
  34. package/dist/compat/browser/client.js +13 -0
  35. package/dist/compat/build.d.ts +145 -0
  36. package/dist/compat/build.js +149 -0
  37. package/dist/compat/checks.d.ts +16 -0
  38. package/dist/compat/checks.js +148 -0
  39. package/dist/compat/patches.d.ts +13 -0
  40. package/dist/compat/patches.js +30 -0
  41. package/dist/compat/paths.d.ts +74 -0
  42. package/dist/compat/paths.js +160 -0
  43. package/dist/compat/rsc/handlers.d.ts +2 -0
  44. package/dist/compat/rsc/handlers.js +2 -0
  45. package/dist/compat/rsc/prerender.d.ts +10 -0
  46. package/dist/compat/rsc/prerender.js +9 -0
  47. package/dist/compat/server/headers.d.ts +3 -0
  48. package/dist/compat/server/headers.js +3 -0
  49. package/dist/compat/ssr/build-output.d.ts +4 -0
  50. package/dist/compat/ssr/build-output.js +3 -0
  51. package/dist/compat/ssr/cache.d.ts +6 -0
  52. package/dist/compat/ssr/cache.js +6 -0
  53. package/dist/compat/ssr/handler.d.ts +8 -0
  54. package/dist/compat/ssr/handler.js +8 -0
  55. package/dist/compat/ssr/node-server.d.ts +5 -0
  56. package/dist/compat/ssr/node-server.js +4 -0
  57. package/dist/compat/ssr/render-errors.d.ts +4 -0
  58. package/dist/compat/ssr/render-errors.js +4 -0
  59. package/dist/compat/ssr/senders.d.ts +6 -0
  60. package/dist/compat/ssr/senders.js +6 -0
  61. package/dist/compat/types.d.ts +8 -0
  62. package/dist/compat/types.js +1 -0
  63. package/dist/compile.d.ts +31 -0
  64. package/dist/compile.js +140 -0
  65. package/dist/disk.d.ts +16 -0
  66. package/dist/disk.js +13 -0
  67. package/dist/document-loads.d.ts +15 -0
  68. package/dist/document-loads.js +53 -0
  69. package/dist/document.d.ts +79 -0
  70. package/dist/document.js +328 -0
  71. package/dist/downloads.d.ts +15 -0
  72. package/dist/downloads.js +71 -0
  73. package/dist/esm-require.d.ts +11 -0
  74. package/dist/esm-require.js +32 -0
  75. package/dist/fast-crypto/index.js +1093 -0
  76. package/dist/fast-crypto.d.ts +20 -0
  77. package/dist/fast-crypto.js +151 -0
  78. package/dist/flight.d.ts +19 -0
  79. package/dist/flight.js +42 -0
  80. package/dist/form-submission.d.ts +15 -0
  81. package/dist/form-submission.js +27 -0
  82. package/dist/from-page.d.ts +5 -0
  83. package/dist/from-page.js +44 -0
  84. package/dist/globals.d.ts +1 -0
  85. package/dist/globals.js +197 -0
  86. package/dist/host-document.d.ts +26 -0
  87. package/dist/host-document.js +34 -0
  88. package/dist/index.d.ts +280 -0
  89. package/dist/index.js +281 -0
  90. package/dist/internal.d.ts +2 -0
  91. package/dist/internal.js +3 -0
  92. package/dist/leftovers.d.ts +11 -0
  93. package/dist/leftovers.js +55 -0
  94. package/dist/mode.d.ts +169 -0
  95. package/dist/mode.js +31 -0
  96. package/dist/node/LICENSES.md +3540 -0
  97. package/dist/node/assert/strict.js +29 -0
  98. package/dist/node/assert.js +3044 -0
  99. package/dist/node/buffer.js +1499 -0
  100. package/dist/node/child_process.js +45 -0
  101. package/dist/node/cluster.js +85 -0
  102. package/dist/node/console.js +96 -0
  103. package/dist/node/constants.js +495 -0
  104. package/dist/node/crypto.js +1388 -0
  105. package/dist/node/dgram.js +78 -0
  106. package/dist/node/diagnostics_channel.js +122 -0
  107. package/dist/node/dns/promises.js +129 -0
  108. package/dist/node/dns.js +137 -0
  109. package/dist/node/domain.js +43 -0
  110. package/dist/node/events.js +1155 -0
  111. package/dist/node/fs/promises.js +40 -0
  112. package/dist/node/fs.js +10375 -0
  113. package/dist/node/http.js +326 -0
  114. package/dist/node/http2.js +305 -0
  115. package/dist/node/https.js +57 -0
  116. package/dist/node/inspector/promises.js +66 -0
  117. package/dist/node/inspector.js +76 -0
  118. package/dist/node/module.js +205 -0
  119. package/dist/node/net.js +392 -0
  120. package/dist/node/os.js +259 -0
  121. package/dist/node/path/posix.js +25 -0
  122. package/dist/node/path/win32.js +25 -0
  123. package/dist/node/path.js +384 -0
  124. package/dist/node/perf_hooks.js +313 -0
  125. package/dist/node/process.js +452 -0
  126. package/dist/node/punycode.js +178 -0
  127. package/dist/node/querystring.js +934 -0
  128. package/dist/node/readline/promises.js +71 -0
  129. package/dist/node/readline.js +56 -0
  130. package/dist/node/repl.js +44 -0
  131. package/dist/node/sqlite.js +22 -0
  132. package/dist/node/stream/consumers.js +47 -0
  133. package/dist/node/stream/promises.js +6 -0
  134. package/dist/node/stream/web.js +52 -0
  135. package/dist/node/stream.js +4323 -0
  136. package/dist/node/string_decoder.js +276 -0
  137. package/dist/node/sys.js +6 -0
  138. package/dist/node/timers/promises.js +71 -0
  139. package/dist/node/timers.js +133 -0
  140. package/dist/node/tls.js +122 -0
  141. package/dist/node/trace_events.js +23 -0
  142. package/dist/node/tty.js +69 -0
  143. package/dist/node/url.js +1426 -0
  144. package/dist/node/util/types.js +1456 -0
  145. package/dist/node/util.js +4807 -0
  146. package/dist/node/v8.js +160 -0
  147. package/dist/node/vm.js +88 -0
  148. package/dist/node/wasi.js +16 -0
  149. package/dist/node/worker_threads.js +123 -0
  150. package/dist/node/zlib.js +1396 -0
  151. package/dist/node-builtins.d.ts +40 -0
  152. package/dist/node-builtins.js +74 -0
  153. package/dist/node-on-page.d.ts +46 -0
  154. package/dist/node-on-page.js +101 -0
  155. package/dist/node-platform.d.ts +36 -0
  156. package/dist/node-platform.js +152 -0
  157. package/dist/node-rendered.d.ts +21 -0
  158. package/dist/node-rendered.js +26 -0
  159. package/dist/node-server.d.ts +46 -0
  160. package/dist/node-server.js +193 -0
  161. package/dist/optimizer-cache-key.d.ts +26 -0
  162. package/dist/optimizer-cache-key.js +73 -0
  163. package/dist/own-package.d.ts +1 -0
  164. package/dist/own-package.js +6 -0
  165. package/dist/page-store.d.ts +33 -0
  166. package/dist/page-store.js +80 -0
  167. package/dist/page-timers.d.ts +22 -0
  168. package/dist/page-timers.js +47 -0
  169. package/dist/page.d.ts +112 -0
  170. package/dist/page.js +549 -0
  171. package/dist/paths.d.ts +13 -0
  172. package/dist/paths.js +47 -0
  173. package/dist/plugin.d.ts +22 -0
  174. package/dist/plugin.js +995 -0
  175. package/dist/prerender-verdict.d.ts +8 -0
  176. package/dist/prerender-verdict.js +67 -0
  177. package/dist/project/context.d.ts +546 -0
  178. package/dist/project/context.js +111 -0
  179. package/dist/project/entries.d.ts +42 -0
  180. package/dist/project/entries.js +189 -0
  181. package/dist/project/env-worker.d.ts +1 -0
  182. package/dist/project/env-worker.js +9 -0
  183. package/dist/project/env.d.ts +36 -0
  184. package/dist/project/env.js +82 -0
  185. package/dist/project/layers.d.ts +31 -0
  186. package/dist/project/layers.js +150 -0
  187. package/dist/project/loaders.d.ts +71 -0
  188. package/dist/project/loaders.js +300 -0
  189. package/dist/project/metadata.d.ts +8 -0
  190. package/dist/project/metadata.js +34 -0
  191. package/dist/project/module-exports.d.ts +29 -0
  192. package/dist/project/module-exports.js +77 -0
  193. package/dist/project/routes.d.ts +19 -0
  194. package/dist/project/routes.js +92 -0
  195. package/dist/project/routing.d.ts +46 -0
  196. package/dist/project/routing.js +280 -0
  197. package/dist/project/transform.d.ts +8 -0
  198. package/dist/project/transform.js +110 -0
  199. package/dist/project/webpack.d.ts +46 -0
  200. package/dist/project/webpack.js +160 -0
  201. package/dist/project.d.ts +264 -0
  202. package/dist/project.js +58 -0
  203. package/dist/registry-global.d.ts +5 -0
  204. package/dist/registry-global.js +5 -0
  205. package/dist/registry.d.ts +241 -0
  206. package/dist/registry.js +30 -0
  207. package/dist/route-chunks.d.ts +13 -0
  208. package/dist/route-chunks.js +32 -0
  209. package/dist/route-lookup.d.ts +34 -0
  210. package/dist/route-lookup.js +207 -0
  211. package/dist/routes-ahead-shared.d.ts +17 -0
  212. package/dist/routes-ahead-shared.js +9 -0
  213. package/dist/routes-ahead.d.ts +10 -0
  214. package/dist/routes-ahead.js +54 -0
  215. package/dist/rsc.d.ts +19 -0
  216. package/dist/rsc.js +171 -0
  217. package/dist/server-action.d.ts +9 -0
  218. package/dist/server-action.js +15 -0
  219. package/dist/server-code.d.ts +176 -0
  220. package/dist/server-code.js +357 -0
  221. package/dist/server-in-front.d.ts +37 -0
  222. package/dist/server-in-front.js +90 -0
  223. package/dist/server-layers.d.ts +22 -0
  224. package/dist/server-layers.js +33 -0
  225. package/dist/setup-browser.d.ts +1 -0
  226. package/dist/setup-browser.js +8 -0
  227. package/dist/setup-node.d.ts +1 -0
  228. package/dist/setup-node.js +6 -0
  229. package/dist/setup.d.ts +8 -0
  230. package/dist/setup.js +62 -0
  231. package/dist/speed-features.d.ts +13 -0
  232. package/dist/speed-features.js +95 -0
  233. package/dist/ssr.d.ts +70 -0
  234. package/dist/ssr.js +480 -0
  235. package/dist/static-build.d.ts +36 -0
  236. package/dist/static-build.js +92 -0
  237. package/dist/storage.d.ts +31 -0
  238. package/dist/storage.js +94 -0
  239. package/dist/styles-shared.d.ts +137 -0
  240. package/dist/styles-shared.js +124 -0
  241. package/dist/styles.d.ts +102 -0
  242. package/dist/styles.js +730 -0
  243. package/dist/stylesheet-versions.d.ts +17 -0
  244. package/dist/stylesheet-versions.js +43 -0
  245. package/dist/tester.html +10 -0
  246. package/dist/use-cache.d.ts +15 -0
  247. package/dist/use-cache.js +93 -0
  248. package/dist/vitest-version.d.ts +6 -0
  249. package/dist/vitest-version.js +12 -0
  250. package/package.json +125 -4
@@ -0,0 +1,66 @@
1
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
2
+ /* @__NO_SIDE_EFFECTS__ */
3
+ function createNotImplementedError(name) {
4
+ return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
5
+ }
6
+ /* @__NO_SIDE_EFFECTS__ */
7
+ function notImplemented(name) {
8
+ const fn = () => {
9
+ throw /* @__PURE__ */ createNotImplementedError(name);
10
+ };
11
+ return Object.assign(fn, { __unenv__: true });
12
+ }
13
+ /* @__NO_SIDE_EFFECTS__ */
14
+ function notImplementedClass(name) {
15
+ return class {
16
+ __unenv__ = true;
17
+ constructor() {
18
+ throw new Error(`[unenv] ${name} is not implemented yet!`);
19
+ }
20
+ };
21
+ }
22
+ //#endregion
23
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
24
+ var noop_default = Object.assign(() => {}, { __unenv__: true });
25
+ //#endregion
26
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector/promises.mjs
27
+ const console = {
28
+ debug: noop_default,
29
+ error: noop_default,
30
+ info: noop_default,
31
+ log: noop_default,
32
+ warn: noop_default,
33
+ dir: noop_default,
34
+ dirxml: noop_default,
35
+ table: noop_default,
36
+ trace: noop_default,
37
+ group: noop_default,
38
+ groupCollapsed: noop_default,
39
+ groupEnd: noop_default,
40
+ clear: noop_default,
41
+ count: noop_default,
42
+ countReset: noop_default,
43
+ assert: noop_default,
44
+ profile: noop_default,
45
+ profileEnd: noop_default,
46
+ time: noop_default,
47
+ timeLog: noop_default,
48
+ timeStamp: noop_default
49
+ };
50
+ const Network = /* @__PURE__ */ notImplementedClass("inspectorPromises.Network");
51
+ const Session = /* @__PURE__ */ notImplementedClass("inspectorPromises.Session");
52
+ const url = /* @__PURE__ */ notImplemented("inspectorPromises.url");
53
+ const waitForDebugger = /* @__PURE__ */ notImplemented("inspectorPromises.waitForDebugger");
54
+ const open = /* @__PURE__ */ notImplemented("inspectorPromises.open");
55
+ const close = /* @__PURE__ */ notImplemented("inspectorPromises.close");
56
+ var promises_default = {
57
+ close,
58
+ console,
59
+ Network,
60
+ open,
61
+ Session,
62
+ url,
63
+ waitForDebugger
64
+ };
65
+ //#endregion
66
+ export { Network, Session, close, console, promises_default as default, open, url, waitForDebugger };
@@ -0,0 +1,76 @@
1
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
2
+ /* @__NO_SIDE_EFFECTS__ */
3
+ function createNotImplementedError(name) {
4
+ return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
5
+ }
6
+ /* @__NO_SIDE_EFFECTS__ */
7
+ function notImplemented(name) {
8
+ const fn = () => {
9
+ throw /* @__PURE__ */ createNotImplementedError(name);
10
+ };
11
+ return Object.assign(fn, { __unenv__: true });
12
+ }
13
+ /* @__NO_SIDE_EFFECTS__ */
14
+ function notImplementedClass(name) {
15
+ return class {
16
+ __unenv__ = true;
17
+ constructor() {
18
+ throw new Error(`[unenv] ${name} is not implemented yet!`);
19
+ }
20
+ };
21
+ }
22
+ //#endregion
23
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
24
+ var noop_default = Object.assign(() => {}, { __unenv__: true });
25
+ //#endregion
26
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector.mjs
27
+ const close = noop_default;
28
+ const console = {
29
+ debug: noop_default,
30
+ error: noop_default,
31
+ info: noop_default,
32
+ log: noop_default,
33
+ warn: noop_default,
34
+ dir: noop_default,
35
+ dirxml: noop_default,
36
+ table: noop_default,
37
+ trace: noop_default,
38
+ group: noop_default,
39
+ groupCollapsed: noop_default,
40
+ groupEnd: noop_default,
41
+ clear: noop_default,
42
+ count: noop_default,
43
+ countReset: noop_default,
44
+ assert: noop_default,
45
+ profile: noop_default,
46
+ profileEnd: noop_default,
47
+ time: noop_default,
48
+ timeLog: noop_default,
49
+ timeStamp: noop_default
50
+ };
51
+ const open = () => ({
52
+ __unenv__: true,
53
+ [Symbol.dispose]() {
54
+ return Promise.resolve();
55
+ }
56
+ });
57
+ const url = () => void 0;
58
+ const waitForDebugger = noop_default;
59
+ const Session = /* @__PURE__ */ notImplementedClass("inspector.Session");
60
+ const Network = {
61
+ loadingFailed: /* @__PURE__ */ notImplemented("inspector.Network.loadingFailed"),
62
+ loadingFinished: /* @__PURE__ */ notImplemented("inspector.Network.loadingFinished"),
63
+ requestWillBeSent: /* @__PURE__ */ notImplemented("inspector.Network.requestWillBeSent"),
64
+ responseReceived: /* @__PURE__ */ notImplemented("inspector.Network.responseReceived")
65
+ };
66
+ var inspector_default = {
67
+ Session,
68
+ close,
69
+ console,
70
+ open,
71
+ url,
72
+ waitForDebugger,
73
+ Network
74
+ };
75
+ //#endregion
76
+ export { Network, Session, close, console, inspector_default as default, open, url, waitForDebugger };
@@ -0,0 +1,205 @@
1
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
2
+ /* @__NO_SIDE_EFFECTS__ */
3
+ function createNotImplementedError(name) {
4
+ return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
5
+ }
6
+ /* @__NO_SIDE_EFFECTS__ */
7
+ function notImplemented(name) {
8
+ const fn = () => {
9
+ throw /* @__PURE__ */ createNotImplementedError(name);
10
+ };
11
+ return Object.assign(fn, { __unenv__: true });
12
+ }
13
+ /* @__NO_SIDE_EFFECTS__ */
14
+ function notImplementedClass(name) {
15
+ return class {
16
+ __unenv__ = true;
17
+ constructor() {
18
+ throw new Error(`[unenv] ${name} is not implemented yet!`);
19
+ }
20
+ };
21
+ }
22
+ //#endregion
23
+ //#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/module.mjs
24
+ const _cache = Object.create(null);
25
+ const _extensions = {
26
+ ".js": /* @__PURE__ */ notImplemented("module.require.extensions['.js']"),
27
+ ".json": /* @__PURE__ */ notImplemented("module.require.extensions['.json']"),
28
+ ".node": /* @__PURE__ */ notImplemented("module.require.extensions['.node']")
29
+ };
30
+ const createRequire$1 = function(_filename) {
31
+ return Object.assign(/* @__PURE__ */ notImplemented("module.require"), {
32
+ resolve: Object.assign(/* @__PURE__ */ notImplemented("module.require.resolve"), { paths: /* @__PURE__ */ notImplemented("module.require.resolve.paths") }),
33
+ cache: Object.create(null),
34
+ extensions: _extensions,
35
+ main: void 0
36
+ });
37
+ };
38
+ const getCompileCacheDir = function() {};
39
+ const enableCompileCache = function(_cacheDir) {
40
+ return {
41
+ status: 0,
42
+ message: "not implemented"
43
+ };
44
+ };
45
+ const constants = Object.freeze({ compileCacheStatus: Object.freeze({
46
+ FAILED: 0,
47
+ ENABLED: 1,
48
+ ALREADY_ENABLED: 2,
49
+ DISABLED: 3
50
+ }) });
51
+ const builtinModules = [
52
+ "_http_agent",
53
+ "_http_client",
54
+ "_http_common",
55
+ "_http_incoming",
56
+ "_http_outgoing",
57
+ "_http_server",
58
+ "_stream_duplex",
59
+ "_stream_passthrough",
60
+ "_stream_readable",
61
+ "_stream_transform",
62
+ "_stream_wrap",
63
+ "_stream_writable",
64
+ "_tls_common",
65
+ "_tls_wrap",
66
+ "assert",
67
+ "assert/strict",
68
+ "async_hooks",
69
+ "buffer",
70
+ "child_process",
71
+ "cluster",
72
+ "console",
73
+ "constants",
74
+ "crypto",
75
+ "dgram",
76
+ "diagnostics_channel",
77
+ "dns",
78
+ "dns/promises",
79
+ "domain",
80
+ "events",
81
+ "fs",
82
+ "fs/promises",
83
+ "http",
84
+ "http2",
85
+ "https",
86
+ "inspector",
87
+ "inspector/promises",
88
+ "module",
89
+ "net",
90
+ "os",
91
+ "path",
92
+ "path/posix",
93
+ "path/win32",
94
+ "perf_hooks",
95
+ "process",
96
+ "punycode",
97
+ "querystring",
98
+ "readline",
99
+ "readline/promises",
100
+ "repl",
101
+ "stream",
102
+ "stream/consumers",
103
+ "stream/promises",
104
+ "stream/web",
105
+ "string_decoder",
106
+ "sys",
107
+ "timers",
108
+ "timers/promises",
109
+ "tls",
110
+ "trace_events",
111
+ "tty",
112
+ "url",
113
+ "util",
114
+ "util/types",
115
+ "v8",
116
+ "vm",
117
+ "wasi",
118
+ "worker_threads",
119
+ "zlib"
120
+ ];
121
+ const isBuiltin = function(id) {
122
+ return id.startsWith("node:") || builtinModules.includes(id);
123
+ };
124
+ const runMain = /* @__PURE__ */ notImplemented("module.runMain");
125
+ const register = /* @__PURE__ */ notImplemented("module.register");
126
+ const syncBuiltinESMExports = function() {
127
+ return [];
128
+ };
129
+ const findSourceMap$1 = function(path, error) {};
130
+ const flushCompileCache = function flushCompileCache() {};
131
+ const wrap = function(source) {
132
+ return `(function (exports, require, module, __filename, __dirname) { ${source}\n});`;
133
+ };
134
+ const wrapper = ["(function (exports, require, module, __filename, __dirname) { ", "\n});"];
135
+ const stripTypeScriptTypes = /* @__PURE__ */ notImplemented("module.stripTypeScriptTypes");
136
+ const SourceMap = /* @__PURE__ */ notImplementedClass("module.SourceMap");
137
+ const _debug = console.debug;
138
+ const _findPath = /* @__PURE__ */ notImplemented("module._findPath");
139
+ const _initPaths = /* @__PURE__ */ notImplemented("module._initPaths");
140
+ const _load = /* @__PURE__ */ notImplemented("module._load");
141
+ const _nodeModulePaths = /* @__PURE__ */ notImplemented("module._nodeModulePaths");
142
+ const _preloadModules = /* @__PURE__ */ notImplemented("module._preloadModules");
143
+ const _resolveFilename = /* @__PURE__ */ notImplemented("module._resolveFilename");
144
+ const _resolveLookupPaths = /* @__PURE__ */ notImplemented("module._resolveLookupPaths");
145
+ const _stat = /* @__PURE__ */ notImplemented("module._stat");
146
+ const _readPackage = /* @__PURE__ */ notImplemented("module._readPackage");
147
+ const findPackageJSON = /* @__PURE__ */ notImplemented("module.findPackageJSON");
148
+ const getSourceMapsSupport = /* @__PURE__ */ notImplemented("module.getSourceMapsSupport");
149
+ const setSourceMapsSupport = /* @__PURE__ */ notImplemented("module.setSourceMapsSupport");
150
+ const _pathCache = Object.create(null);
151
+ const globalPaths = ["node_modules"];
152
+ const Module = {
153
+ get Module() {
154
+ return Module;
155
+ },
156
+ SourceMap,
157
+ _cache,
158
+ _extensions,
159
+ _debug,
160
+ _pathCache,
161
+ _findPath,
162
+ _initPaths,
163
+ _load,
164
+ _nodeModulePaths,
165
+ _preloadModules,
166
+ _resolveFilename,
167
+ _resolveLookupPaths,
168
+ _stat,
169
+ _readPackage,
170
+ builtinModules,
171
+ constants,
172
+ createRequire: createRequire$1,
173
+ enableCompileCache,
174
+ findSourceMap: findSourceMap$1,
175
+ getCompileCacheDir,
176
+ globalPaths,
177
+ isBuiltin,
178
+ register,
179
+ runMain,
180
+ syncBuiltinESMExports,
181
+ wrap,
182
+ wrapper,
183
+ flushCompileCache,
184
+ stripTypeScriptTypes,
185
+ findPackageJSON,
186
+ getSourceMapsSupport,
187
+ setSourceMapsSupport
188
+ };
189
+ //#endregion
190
+ //#region src/node/module.ts
191
+ const missing = (name) => function() {
192
+ throw new Error(`vitest-plugin-rsc: ${name} of Node.js is not there in the browser`);
193
+ };
194
+ const findSourceMap = () => void 0;
195
+ const createRequire = () => Object.assign(missing("module.createRequire()'s require"), {
196
+ resolve: missing("module.createRequire()'s require.resolve"),
197
+ cache: {}
198
+ });
199
+ var module_default = {
200
+ ...Module,
201
+ findSourceMap,
202
+ createRequire
203
+ };
204
+ //#endregion
205
+ export { Module, SourceMap, _cache, _debug, _extensions, _findPath, _initPaths, _load, _nodeModulePaths, _pathCache, _preloadModules, _readPackage, _resolveFilename, _resolveLookupPaths, _stat, builtinModules, constants, createRequire, module_default as default, enableCompileCache, findPackageJSON, findSourceMap, flushCompileCache, getCompileCacheDir, getSourceMapsSupport, globalPaths, isBuiltin, register, runMain, setSourceMapsSupport, stripTypeScriptTypes, syncBuiltinESMExports, wrap, wrapper };