Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function build (isDevelopment, exitOnError) {
log.info('Building plugin...')
const config = await readConfig()
try {
await buildBundle(config, isDevelopment)
await buildManifest(config)
} catch (error) {
log.error(error)
if (exitOnError === true) {
process.exit(1)
}
return
}
log.success('Done')
}