Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tasks.forEach(task => compiler.watch(task.src, `${task.dest}.js`, opt)
.on('compile', (details) => {
const count = details.files.length
const { duration } = details
console.log(`compiled ${count} file(s) in ${duration} ms`)
}))
} else {
tasks.forEach(task => compiler.watch(task.src, task.dest, opt)
.on('compile', (details) => {
const count = details.files.length
const { duration } = details
console.log(TAG_FRIDA, `compiled ${count} file(s) in ${duration} ms`)
}))
} else {