Skip to content

Commit

Permalink
Fix name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 28, 2024
1 parent 5418e3c commit 78e9508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/elementsInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 = /^@[^/]*\/?[^/]+/;
Expand Down

0 comments on commit 78e9508

Please sign in to comment.