Closed fabiospampinato closed 3 weeks ago
Just looked into https://github.com/microsoft/TypeScript/pull/58042 a bit. It looks like as far as esbuild is concerned, this only affects baseUrl
and paths
. If the string starts with "${configDir}"
(only at the start, not anywhere else), I need to replace that prefix with "./"
and then resolve that into an absolute path relative to the directory containing the root-level tsconfig.json
file. In particular, it looks like you don't need to use a slash after ${configDir}
since "${configDir}/lib"
becomes ".//lib"
after this substitution. Hopefully I'm understanding everything correctly.
Yeah if there's something that should be done differently in your implementation I don't know what it is. Thanks 👍
In TS v5.5.0 a new
${configDir}
template variables will be supported.Trying to bundle a project that uses that variables in its
tsconfig.json
with the following command with esbuild@0.21.4:Results in the following warnings: