vite-dts icon indicating copy to clipboard operation
vite-dts copied to clipboard

It's not generating .d.ts files

Open ShivamJoker opened this issue 3 years ago • 1 comments

All i get is this image

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

ShivamJoker avatar Feb 10 '22 09:02 ShivamJoker