Skip to content

Commit

Permalink
removed conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
13XAVI committed Jun 7, 2024
2 parents 4f690d2 + 1d4ea43 commit 9e8ae4f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.tsx';
import './index.css';
import App from '@/App.tsx';
import '@/index.css';

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"module": "ESNext",
"skipLibCheck": true,

/*Configure TypeScript Paths*/
"paths": {
"@/*": ["./src/*"],
},

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
Expand Down
10 changes: 10 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,14 @@ export default defineConfig({
environment: 'jsdom',
setupFiles: ['./src/__test__/setupTests.ts'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
build: {
rollupOptions: {
external: ['src/App.tsx'],
},
},
});

0 comments on commit 9e8ae4f

Please sign in to comment.