I have a jsconfig.json like the following:
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
}
},
"exclude": [
"node_modules",
"**/node_modules/*",
".nuxt", "dist"
]
}
It works fine with imports such as:
import Config from '@/resources/config'
import Tests from '@/tests/suite.js'
import MyHeader from '@/components/MyHeader.vue'
BUT, it doesn't work with:
import MyHeader from '@/components/MyHeader' # The "from" has no file extension
The resolver seems to work when the file extension is JS, VSCode is able to add it when searching for it if it isn't indicated, but not for .vue file.
How/where can I tell VSCode to also try to append the ".vue" file extension?