How to use the @babel/cli/lib/babel/options.default function in @babel/cli

To help you get started, we’ve selected a few @babel/cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github goldenshun / nextmail / lib / build.js View on Github external
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);
}