alloc / alloc/vite-dts

It's not generating .d.ts files

Đang mở
#5 1 bình luận 8 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ả

All i get is this
![image](https://user-images.githubusercontent.com/23727670/153376045-d084aad1-3af5-45b3-8b2d-76793a613ca3.png)

```ts
import { defineConfig } from "vite";
import dts from "vite-dts";

// https://vitejs.dev/config/
export default defineConfig({
build: {
target: "esnext",
sourcemap: true,
minify: false,
lib: {
entry: "src/index.tsx",
name: "EmojiCaptcha",
// fileName: (format) => `EmojiCaptcha.${format}.js`,
},
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
external: ["react"],

output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
react: "React",
},
sourcemapExcludeSources: true,
},
},
},
plugins: [dts()],
});

```

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.