alloc / alloc/vite-dts

Incompatible with Vite >= 3.1.0

Đang mở
#13 3 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
87
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.