Skip to content

Commit

Permalink
Updated the Vite config and ts config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaieds committed Nov 18, 2024
1 parent ed679da commit db2e994
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"target": "ES2020",
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,

Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import preserveDirectives from 'rollup-preserve-directives';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';
Expand Down Expand Up @@ -34,5 +35,6 @@ export default defineConfig({
plugins: [
react(),
dts({ rollupTypes: true, tsconfigPath: './tsconfig.app.json' }),
preserveDirectives(),
],
});

0 comments on commit db2e994

Please sign in to comment.