Skip to content

Commit

Permalink
chore: fix dts config
Browse files Browse the repository at this point in the history
  • Loading branch information
receter committed Sep 9, 2024
1 parent d7af410 commit f240e4e
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions packages/utils/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import { defineConfig } from 'vite'
import { resolve } from 'path'
import dts from 'vite-plugin-dts'
import { defineConfig } from "vite";
import { resolve } from "path";
import dts from "vite-plugin-dts";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
dts({
entryRoot: 'lib',
}),
],
plugins: [dts({ include: ["lib"] })],
build: {
lib: {
entry: resolve(__dirname, 'lib/main.ts'),
formats: ['es']
}
}
})
entry: resolve(__dirname, "lib/main.ts"),
formats: ["es"],
},
},
});

0 comments on commit f240e4e

Please sign in to comment.