Skip to content

Commit

Permalink
fix: add tsconfig plugin to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv authored Sep 11, 2024
1 parent 2200968 commit fb05e00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import dts from 'vite-plugin-dts';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), dts({ include: ['src'], exclude: ['src/**/*.spec.tsx'] })],
plugins: [react(), dts({
include: ['src'],
exclude: ['src/**/*.spec.tsx'],
tsconfigPath: './tsconfig.app.json'
})],
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
Expand Down

0 comments on commit fb05e00

Please sign in to comment.