feat: add config to resolve path alias. (#13)

This commit is contained in:
Hawtim Zhang 2020-10-18 19:59:31 +08:00 committed by GitHub
parent bce09351cd
commit a2e901802c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

14
jsconfig.json Normal file
View File

@ -0,0 +1,14 @@
{
// @
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"target": "ES6",
"module": "commonjs",
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}