mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
editor/code: Set ts' --moduleResolution=node16 option
https://www.typescriptlang.org/tsconfig#moduleResolution By this change, typescript compiler can read `exports` field in package.json for dependencies. https://nodejs.org/api/packages.html#exports-sugar
This commit is contained in:
parent
45d4ebcf19
commit
bb35d8fa8e
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
"compilerOptions": {
|
||||
"esModuleInterop": false,
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node16",
|
||||
"target": "es2021",
|
||||
"outDir": "out",
|
||||
"lib": ["es2021"],
|
||||
|
|
Loading…
Reference in a new issue