We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85886f0 commit 62a31b8Copy full SHA for 62a31b8
vite.build.ts
@@ -27,7 +27,13 @@ export const globals = {
27
export const isIIFE = detectIIFE();
28
export const formats: LibraryFormats[] = !isIIFE ? ["es", "cjs"] : ["iife"];
29
export default defineConfig({
30
- plugins: [react(), !isIIFE && dts()],
+ plugins: [
31
+ react(),
32
+ !isIIFE &&
33
+ dts({
34
+ insertTypesEntry: true, // Generate entry of types. Entry path is 'types' in package.json
35
+ }),
36
+ ],
37
build: {
38
sourcemap: isIIFE,
39
emptyOutDir: !isIIFE,
0 commit comments