-
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
vitejs/vite
#19375Description
Description
- Downstream issue Vitest does not work with
${configDir}andreferencesoftsconfig.jsonvitest-dev/vitest#7420 (comment)
For the following tsconfig files, parse("src/b.ts") and parseNative("src/b.ts") work differently:
// tsconfig.json
{
"files": [],
"references": [
{
"path": "./tsconfig.vi-configdir.json"
}
]
}
// tsconfig.vi-configdir.json
{
"compilerOptions": {
"module": "ES2022",
"moduleResolution": "bundler",
"noUnusedLocals": true,
"skipLibCheck": true,
"experimentalDecorators": true,
},
"include": ["${configDir}/src/*"]
}❯ node repro.js
==== parse ====
{ files: [], references: [ { path: './tsconfig.vi-configdir.json' } ] }
==== parseNative ====
{
compilerOptions: {
module: 'es2022',
moduleResolution: 'bundler',
noUnusedLocals: true,
skipLibCheck: true,
experimentalDecorators: true
},
include: [ '/home/projects/github-jbcdpwek/src/*' ]
}Reproduction
https://stackblitz.com/edit/github-jbcdpwek?file=repro.js
Additional Information
❯ npx envinfo --system --binaries --browsers --npmPackages
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 18.20.3 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.3 - /usr/local/bin/npm
pnpm: 8.15.6 - /usr/local/bin/pnpm
npmPackages:
class-validator: 0.14.1 => 0.14.1
tsconfck: ^3.1.4 => 3.1.4
typescript: ^5.7.3 => 5.7.3
vite: ^6.0.11 => 6.0.11
vitest: 3.0.5 => 3.0.5
Metadata
Metadata
Assignees
Labels
No labels