refactor: fix merge (#19919)

This commit is contained in:
Alexander Akait 2025-09-19 15:44:12 +03:00 committed by GitHub
parent ab9f78b8f6
commit 898c48042d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -1951,7 +1951,6 @@ class FileSystemInfo {
this.fs.readFile(path, (err, content) => {
if (err) return callback(err);
try {
const added = new Set();
const context = dirname(this.fs, path);
const source = /** @type {Buffer} */ (content).toString();
const [imports] = lexer.parse(source);
@ -1973,8 +1972,6 @@ class FileSystemInfo {
continue;
}
// Avoid extra jobs for the same import
if (added.has(dependency)) continue;
// We should not track Node.js build dependencies
if (dependency.startsWith("node:")) continue;
if (builtinModules.has(dependency)) continue;