I have the following jsconfig.json
file at the root of my project
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": [
"node_modules",
"**/node_modules/*",
".nuxt", "dist"
]
}
The idea is to find the files when I import them like this:
import Component from '@/components/sub/Item'
If I rename the import with this:
import Component from '@/components/sub/Item.vue'
It works.
How can I automatically append ".vue" via the jsconfig.js file?