alloc / alloc/vite-dts

Incompatible with Vite >= 3.1.0

未關閉
#13 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
87
分支
12
PR 合併指標
30 天內沒有已合併 PR

描述

Building with Vite > 3.1.0 gives the following error:

```
error during build:
TypeError: Cannot set properties of undefined (setting 'generateBundle')
at configResolved (/.../vite-dts/dist/cjs/plugin.js:56:33)
```

Worked fine prior to 3.1.0 release. Appears to be related to "this" (pun intended): https://github.com/vitejs/vite/commit/2d2f2e5

I believe the fix is to move the `generateBundle` function def outside of the `configResolved` function.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。