Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.all(tasks.map(task => compiler.build(task.src, task.dest, opt)))
.catch(err => console.error(err))
.all(tasks.map(task => compiler.build(task.src, `${task.dest}.bin`, opt)))
.catch(err => console.error(err))
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 {