alloc / alloc/vite-dts

It's not generating .d.ts files

Open
#5 1 comment 8 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
87
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.