mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Remove duplicate code
This commit is contained in:
@@ -1177,26 +1177,6 @@ class Target {
|
||||
// ImportScanner's knowledge of which modules are really imported.
|
||||
this.watchSet.merge(entry.importScannerWatchSet);
|
||||
}
|
||||
|
||||
// Any source resource that the content or hash was accessed for are marked
|
||||
// as definitely used.
|
||||
// If there are any output resources for these in the js output, they are
|
||||
// excluded from the importScannerWatchSet so they are only marked as
|
||||
// definitely used if their content was used, not if they are added
|
||||
// to the built app.
|
||||
unibuild.resources.forEach(resource => {
|
||||
if (resource.type !== 'source' || resource._dataUsed === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
assert.strictEqual(
|
||||
typeof resource._dataUsed,
|
||||
"boolean"
|
||||
);
|
||||
|
||||
let absPath = files.pathJoin(sourceRoot, resource.path);
|
||||
this.watchSet.addFile(absPath, resource.hash);
|
||||
});
|
||||
});
|
||||
|
||||
if (buildmessage.jobHasMessages()) {
|
||||
|
||||
Reference in New Issue
Block a user