alloc / alloc/vite-dts

It's not generating .d.ts files

未关闭
#5 1 条评论 8 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
87
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

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()],
});

```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。