packages/okam-build/lib/processor/js/typescript-parser.js
function compile(file, options) {
    let config = options.config || {};
    let presets = config.presets || [];

    let tsPreset = '@babel/preset-typescript';
    if (!presets.includes(tsPreset)) {
        config.presets = [tsPreset].concat(presets);
        options.config = config;
    }

    return parserHelper.compile(file, options, 7);
}
function compile(file, options) {
    let config = options.config || {};
    let presets = config.presets || [];

    let tsPreset = '@babel/preset-typescript';
    if (!presets.includes(tsPreset)) {
        config.presets = [tsPreset].concat(presets);
        options.config = config;
    }

    return parserHelper.compile(file, options, 7);
}
Compile the file using babel

@param {Object} file the file to process
@param {Object} options the compile options
@return {{content: string, sourceMap: string}}