+73
-2
| import fs, { realpathSync, statSync } from 'node:fs'; | ||
| import { fileURLToPath, URL as URL$1, pathToFileURL } from 'node:url'; | ||
| import path, { isAbsolute } from 'node:path'; | ||
| import { builtinModules } from 'node:module'; | ||
| import assert from 'node:assert'; | ||
| import process$1 from 'node:process'; | ||
| import { builtinModules } from 'node:module'; | ||
| import v8 from 'node:v8'; | ||
@@ -1136,2 +1136,73 @@ import { format, inspect } from 'node:util'; | ||
| const nodeBuiltins = [ | ||
| "_http_agent", | ||
| "_http_client", | ||
| "_http_common", | ||
| "_http_incoming", | ||
| "_http_outgoing", | ||
| "_http_server", | ||
| "_stream_duplex", | ||
| "_stream_passthrough", | ||
| "_stream_readable", | ||
| "_stream_transform", | ||
| "_stream_wrap", | ||
| "_stream_writable", | ||
| "_tls_common", | ||
| "_tls_wrap", | ||
| "assert", | ||
| "assert/strict", | ||
| "async_hooks", | ||
| "buffer", | ||
| "child_process", | ||
| "cluster", | ||
| "console", | ||
| "constants", | ||
| "crypto", | ||
| "dgram", | ||
| "diagnostics_channel", | ||
| "dns", | ||
| "dns/promises", | ||
| "domain", | ||
| "events", | ||
| "fs", | ||
| "fs/promises", | ||
| "http", | ||
| "http2", | ||
| "https", | ||
| "inspector", | ||
| "inspector/promises", | ||
| "module", | ||
| "net", | ||
| "os", | ||
| "path", | ||
| "path/posix", | ||
| "path/win32", | ||
| "perf_hooks", | ||
| "process", | ||
| "punycode", | ||
| "querystring", | ||
| "readline", | ||
| "readline/promises", | ||
| "repl", | ||
| "stream", | ||
| "stream/consumers", | ||
| "stream/promises", | ||
| "stream/web", | ||
| "string_decoder", | ||
| "sys", | ||
| "timers", | ||
| "timers/promises", | ||
| "tls", | ||
| "trace_events", | ||
| "tty", | ||
| "url", | ||
| "util", | ||
| "util/types", | ||
| "v8", | ||
| "vm", | ||
| "wasi", | ||
| "worker_threads", | ||
| "zlib" | ||
| ]; | ||
| const DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]); | ||
@@ -1348,3 +1419,3 @@ const isWindows = /* @__PURE__ */ (() => process.platform === "win32")(); | ||
| } | ||
| if (builtinModules.includes(input) && !input.includes(":")) { | ||
| if (nodeBuiltins.includes(input) && !input.includes(":")) { | ||
| return { external: `node:${input}` }; | ||
@@ -1351,0 +1422,0 @@ } |
+1
-1
| { | ||
| "name": "exsolve", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "Module resolution utilities based on Node.js upstream implementation.", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/exsolve", |
59316
1.8%1426
5.16%