Skip to content

Commit

Permalink
slimming cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwhitney committed May 27, 2024
1 parent 271ae8d commit dca6629
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 17 deletions.
9 changes: 6 additions & 3 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import React from "react";
import { createRoot } from "react-dom/client";
import App from './App'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')).render(
const container = document.getElementById("root")!;
const root = createRoot(container);

root.render(
<React.StrictMode>
<App />
</React.StrictMode>
Expand Down
33 changes: 20 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"module": "ESNext",
"strict": true,
"esModuleInterop": true,
"jsx": "react-jsx"
"target": "ESNext",
"useDefineForClassFields": true,
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"allowJs": true,
"skipLibCheck": false,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"./server/**/*",
"./client/**/*"
"./server",
"./client",
]
}
}
4 changes: 3 additions & 1 deletion vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import 'npm:react-dom@^18.3.1'
// https://vitejs.dev/config/
export default defineConfig({
root: './client',
outDir: '../../dist',
build: {
outDir: "../../dist"
},
server: {
port: 3000
},
Expand Down

0 comments on commit dca6629

Please sign in to comment.