uiLauncher.mjs 312 Bytes
export const openMiniProgram = (automator, config) => {
  if (config.launchDevTools) {
    return automator.launch({
      cliPath: config.cliPath,
      projectPath: config.projectPath,
      port: config.port,
      trustProject: true
    })
  }
  return automator.connect({ wsEndpoint: config.wsEndpoint })
}