function mkDirForFile(outFile) {
    let outDir = outFile;
    const lastSepIndex = outFile.lastIndexOf(path.sep);
    if (lastSepIndex > -1) {
        outDir = outFile.substring(0, lastSepIndex);
    }

    if (!fse.existsSync(outDir)) {
        fse.mkdirsSync(outDir);
    }
}
@param {*} tranFns plugin main function
@param {*} options options
@param {*} srcFilePath srcFilePath
@param {*} outFilePath outFilePath
@returns {success or failed}