alloc / alloc/vite-dts

Incompatible with Vite >= 3.1.0

オープン
#13 コメント 3 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。