code: function resolveEntry() {
    const supportEntrySuffixs = ['js', 'jsx', 'ts', 'tsx']
  
    for (const suffix of supportEntrySuffixs) {
      const path = resolveProjectPath(`src/main.${suffix}`)
      if (fs.existsSync(path)) {
        return path
      }
    }
  }
docs: 获取 webpack 入口路径，支持 typescript