设置了alias以后vscode 点击路径跳转不了
jsconfig.json
http://events.jianshu.io/p/4772b62c2c1b
jsconfig 与tsconfig :tsconfig生效
https://github.com/microsoft/TypeScript/issues/15869
需要js时候tsconfig中配置"allowJs": true,即可,不需要jsconfig了
https://code.visualstudio.com/docs/languages/jsconfig
"baseUrl": "./",
"paths": {
"@/": ["./path/"]
}
jest
moduleNameMapper: {
"^@/(.*)$": "
},
webpack
resolve: {
alias: {
'@': path.resolve(__dirname, './path')
},
},