1 | const compile = require('../core/compile');
|
2 |
|
3 | exports = module.exports = (program) => {
|
4 |
|
5 | let compilation = compile(program);
|
6 |
|
7 | compilation.init().then((flag) => {
|
8 | compilation.start();
|
9 | }).catch(e => {
|
10 | compilation.logger.error('init', e.message);
|
11 | });
|
12 |
|
13 | }
|