vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.87k stars 403 forks source link

`vueCompilerOptions` is undocumented and inconsistent #4936

Open Llois41 opened 1 month ago

Llois41 commented 1 month ago

Vue - Official extension or vue-tsc version

2.1.6

VSCode version

-

Vue version

3.5.12

TypeScript version

5.5.4

System Info

No response

package.json dependencies

No response

Steps to reproduce

Set vueCompilerOptions field in package.json to

"vueCompilerOptions": {
    "target": 3.5
},

and then run vue-tsc.

What is expected?

It parses correctly since there are referneces to using a vueCompilerOptions.target version greater than 3.3 (see https://github.com/search?q=repo%3Avuejs%2Flanguage-tools%20vueCompilerOptions&type=code) but this seems to be the "highest" supported version if looking at other files.

I would love to see some documentation.

What is actually happening?

There are Failed to parse file 'gk/tsconfig.json': Semantic errors. errors in the console if running vue-tsc with vueCompilerOptions.target = 3.5

Also there seems to be no documentation of the vueCompilerOptions field.

Link to minimal reproduction

No response

Any additional comments?

No response