Solve the problem that "go definition" does not work when using import syntax to import files such as .vue in js files
解决在js文件中,当使用import
语法导入.vue等文件时,"go definition"导航到定义不工作的问题
// preset
// 预置
{
"@": "src"
}
// preset .vue file extension name
// 预置 .vue扩展
["vue"]
// Assuming the file exists @/src/common/component/search.vue
// 假设存在文件@/src/common/component/search.vue
import Search from '@/src/common/component/search'
// Assuming the file exists @/src/common/component/search/index.vue
// 假设存在文件@/src/common/component/search/index.vue
import Search from '@/src/common/component/search'