diff --git a/esbuild.config.mjs b/esbuild.config.mjs index b17bc09..a9d0195 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -1,6 +1,55 @@ import esbuild from "esbuild"; import process from "process"; -import builtins from "builtin-modules"; + +const builtins = [ + "assert", + "async_hooks", + "buffer", + "child_process", + "cluster", + "console", + "constants", + "crypto", + "dgram", + "diagnostics_channel", + "dns", + "domain", + "events", + "fs", + "fs/promises", + "http", + "http2", + "https", + "inspector", + "module", + "net", + "os", + "path", + "perf_hooks", + "process", + "punycode", + "querystring", + "readline", + "repl", + "stream", + "stream/consumers", + "stream/promises", + "stream/web", + "string_decoder", + "sys", + "timers", + "timers/promises", + "tls", + "trace_events", + "tty", + "url", + "util", + "v8", + "vm", + "wasi", + "worker_threads", + "zlib", +]; const prod = process.argv[2] === "production"; diff --git a/package-lock.json b/package-lock.json index 97fbd0c..eb72daa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,6 @@ "devDependencies": { "@types/node": "^22.0.0", "@typescript-eslint/parser": "^8.59.1", - "builtin-modules": "^4.0.0", "esbuild": "^0.25.5", "eslint": "^9.39.4", "eslint-plugin-obsidianmd": "^0.2.9", @@ -1410,19 +1409,6 @@ "node": "18 || 20 || >=22" } }, - "node_modules/builtin-modules": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-4.0.0.tgz", - "integrity": "sha512-p1n8zyCkt1BVrKNFymOHjcDSAl7oq/gUvfgULv2EblgpPVQlQr9yHnWjg9IJ2MhfwPqiYqMMrr01OY7yQoK2yA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/call-bind": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", diff --git a/package.json b/package.json index 8184645..d7456c3 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "devDependencies": { "@types/node": "^22.0.0", "@typescript-eslint/parser": "^8.59.1", - "builtin-modules": "^4.0.0", "esbuild": "^0.25.5", "eslint": "^9.39.4", "eslint-plugin-obsidianmd": "^0.2.9",