I’m compiling some TypeScript on my page using js.Build
and am seeking some clarification on the generated jsconfig.json
file. Whenever it is generated it has the following contents:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"*"
]
}
}
}
I’m using VS Code as my editor and was hoping to be able to add "target": "esnext"
(or some other target) to have error highlighting work properly. If I manually add this line it works fine, but then when I save my files jsconfig.json
gets recreated with the default contents.
I’ve tried adding parameters to js.Build
to maybe specify the target there, but it doesn’t seem to affect the jsconfig.json
output at all. The documentation also suggests that the default target is esnext
anyway, so me specifying it explicitly shouldn’t actually provide a change in the end.
In short, is there a way to configure js.Build
options such that jsconfig.json
includes a target
line?