Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function build({ watch = false } = {}) {
let options = getOptions([
'',
'',
`${root}/emails`,
'--out-dir',
`${root}/.nextmail`,
'--delete-dir-on-start',
...(watch ? ['--watch'] : []),
]);
options = Object.assign({}, options, { babelOptions });
await babelCli(options);
}