Skip to content

projectorjs/projector-babel

Repository files navigation

projector-babel

Run Babel with ease

import * as babel from 'projector-babel';

export async function build() {
  let {code, ast} = await babel.transform({
    code: 'input();',
    options: { /* babel options */ }
  });
}