Skip to content

Commit

Permalink
Make the Node.js tsconfig.json more like the Vite starter
Browse files Browse the repository at this point in the history
The way Vite loads TypeScript config files seems to work more like this
than like regular Node.js resolution. I'm not sure exactly what they do
under the hood, but this is how their starter template is configured,
and in another project that uses Tailwind with a TypeScript config I had
actual complaints from VS Code with the node16 settings (though no
complaints from Vite).
  • Loading branch information
ahamlinman committed Sep 8, 2024
1 parent 076c4bd commit 68dd05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": ["vite.config.ts"],
"compilerOptions": {
"composite": true,
"module": "node16",
"moduleResolution": "node16"
"module": "esnext",
"moduleResolution": "bundler"
}
}

0 comments on commit 68dd05a

Please sign in to comment.