From 034e62663c90827896cde2bf13799ee7adaea62a Mon Sep 17 00:00:00 2001 From: scagood <2230835+scagood@users.noreply.github.com> Date: Thu, 9 Nov 2023 17:40:22 +0000 Subject: [PATCH] fix: Change to using is-builtin-module --- lib/util/import-target.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/import-target.js b/lib/util/import-target.js index b987b3ca..268a99f2 100644 --- a/lib/util/import-target.js +++ b/lib/util/import-target.js @@ -6,7 +6,7 @@ const path = require("path") const { pathToFileURL, fileURLToPath } = require("url") -const { isBuiltin } = require("module") +const isBuiltin = require("is-builtin-module") const resolve = require("resolve") const { defaultResolve: importResolve, diff --git a/package.json b/package.json index b8cb916f..39e13d5e 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "eslint-plugin-es-x": "^7.1.0", "get-tsconfig": "^4.7.0", "ignore": "^5.2.4", + "is-builtin-module": "^3.2.1", "is-core-module": "^2.12.1", "minimatch": "^3.1.2", "resolve": "^1.22.2",