tsCompiler = (dist, config) =>
  function compileTs() {
    const tsProject = ts.createProject(config, {
      declaration: true,
    });
    const tsResult = tsProject.src().pipe(tsProject());

    return merge2(
      tsResult.js
        .pipe(
          insert.transform((contents, file) => {
            if (dist === exampleDistDir && file.path.includes(`${path.sep}demo${path.sep}`)) {
              const iconConfig = '@vant/icons/src/config';
              contents = contents.replace(
                iconConfig,
                path.relative(
                  path.dirname(file.path),
                  `${exampleDistDir}/${iconConfig}`
                ).replace(/\\/g, '/')
              );
            }
            return contents;
          })
        )
        .pipe(gulp.dest(dist)),
      tsResult.dts.pipe(gulp.dest(dist))
    );
  }
/*.less`];
    if ([esDir, libDir].indexOf(dist) !== -1) {
      srcPath.push(`!${src}/*