From 78e9508887e2a62dd3ae0d277326ad47fea8f3cd Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 28 Jun 2024 12:54:36 +0200 Subject: [PATCH] Fix name clash --- src/core/elementsInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/elementsInfo.js b/src/core/elementsInfo.js index 9385c94..0ef71d5 100644 --- a/src/core/elementsInfo.js +++ b/src/core/elementsInfo.js @@ -9,7 +9,7 @@ const { isArray } = require("../helpers/utils"); const { filesCache, importsCache, elementsCache } = require("./cache"); -function isBuiltin(moduleName) { +function isCoreModule(moduleName) { const moduleNameWithoutPrefix = moduleName.startsWith("node:") ? moduleName.slice(5) : moduleName; @@ -46,7 +46,7 @@ function isIgnored(path, settings) { function isBuiltIn(name, path) { if (path || !name) return false; const base = baseModule(name); - return isBuiltin(base); + return isCoreModule(base); } const scopedRegExp = /^@[^/]*\/?[^/]+/;