Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async collectDependencies() {
let count = 0;
let runinfo = this.getTranscryptRunInfo();
if (runinfo && runinfo.modules) {
for (let mod of runinfo.modules) {
if (mod.source) {
this.addDependency(mod.source, {includedInParent: true});
count++;
}
}
if (this.options['watch']) {
logger.verbose(`${LOG_PREFIX} Added ${count} watch dependencies...`);
}
}
}