antfu / starter-ts

Starter template for TypeScript library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

引入vite的PluginOption类型后,build命令报错

17359898647 opened this issue · comments

Describe the bug

image

Reproduction

一旦使用PluginOption类型之后,打包报错

System Info

import type { PluginOption } from 'vite'

export const one = 1
export const two = 2

export type { PluginOption }

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.