mirror of https://github.com/webpack/webpack.git
refactor: fix merge (#19919)
This commit is contained in:
parent
ab9f78b8f6
commit
898c48042d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue