From a2e901802c0eb829a1c2eb79b428866589d2c8e1 Mon Sep 17 00:00:00 2001 From: Hawtim Zhang Date: Sun, 18 Oct 2020 19:59:31 +0800 Subject: [PATCH] feat: add config to resolve path alias. (#13) --- 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"] +}