From 06d40f965aefc854b85a2ee2d7d79db59ca7e8dc Mon Sep 17 00:00:00 2001 From: kunkka Date: Sun, 18 Oct 2020 19:28:33 +0800 Subject: [PATCH] feat: add config to resolve path alias. --- jsconfig.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 jsconfig.json diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..0d612a8 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,14 @@ +{ + // 支持 @ 的别名解析 + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + }, + "target": "ES6", + "module": "commonjs", + "allowSyntheticDefaultImports": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules"] +}