Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not generating .d.ts files #5

Open
ShivamJoker opened this issue Feb 10, 2022 · 1 comment
Open

It's not generating .d.ts files #5

ShivamJoker opened this issue Feb 10, 2022 · 1 comment

Comments

@ShivamJoker
Copy link

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()],
});
@joeyfigaro
Copy link

Same here. Doesn't seem to actually generate any .d.ts as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants