split to compile.js [skip ci]