Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
text() {
const options = this.resetOptions()
const transformers = options.plugins.map(p => p.transform)
return pWaterfall(transformers, options)
}
const watcher = watch(configs)
watcher.on('event', e => {
if (e.code === 'ERROR') {
logger.error(e.error.message)
}
})
} else {
try {
if (options.concurrent) {
await Promise.all(
tasks.map(task => {
return this.build(task, context, options.write)
})
)
} else {
await waterfall(
tasks.map(task => () => {
return this.build(task, context, options.write)
}),
context
)
}
} catch (err) {
spinner.stop()
throw err
}
}
return this
}