Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHallen122 committed Feb 6, 2025
1 parent 36f2f2e commit b1d2bbf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/template/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
},
"dependencies": {
"@tailwindcss/vite": "^4.0.0",
"axios": "^1.7.9",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^6.28.2",
"react-router-dom": "^7.1.5",
"tailwindcss": "^4.0.0"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions backend/template/react-ts/src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import ReactDOM from "react-dom/client";

const App = () => <h1>Hello, CodeFox!</h1>;

ReactDOM.createRoot(document.getElementById("root")!).render(<App />);
2 changes: 1 addition & 1 deletion backend/template/react-ts/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"noEmit": true,

/* Linting */
"strict": true,
"strict": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
Expand Down
6 changes: 6 additions & 0 deletions backend/template/react-ts/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
esbuild: {
target: 'esnext', // Allow top-level await
},
build: {
target: 'esnext', // Ensure Vite compiles for a modern target
},
});

0 comments on commit b1d2bbf

Please sign in to comment.