({ entry }: BootstrapOptions)
| 16 | |
| 17 | export class Engine { |
| 18 | boot({ entry }: BootstrapOptions): void { |
| 19 | this.checkEntryExists(entry) |
| 20 | |
| 21 | const babelBinary = this.findBabelBinary() |
| 22 | const babelConfig = this.findBabelConfig() |
| 23 | |
| 24 | log(`waiting for compile exec: ${entry}`) |
| 25 | execa.commandSync(`${babelBinary} --config-file ${babelConfig} ${entry}`, { |
| 26 | stdio: 'inherit', |
| 27 | cwd: process.cwd(), |
| 28 | }) |
| 29 | } |
| 30 | |
| 31 | findBabelBinary(): string | undefined { |
| 32 | return findUp.sync( |
no test coverage detected