Skip to content

Commit

Permalink
feat: add config to resolve path alias. (qier222#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawtim authored Oct 18, 2020
1 parent bce0935 commit a2e9018
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// 支持 @ 的别名解析
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"target": "ES6",
"module": "commonjs",
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}

0 comments on commit a2e9018

Please sign in to comment.