From 40b12b865e5bd9c1f0ccbaeb86d2e6df942088be Mon Sep 17 00:00:00 2001 From: "Zhenfei.Li" Date: Tue, 10 Jan 2023 15:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20chore:=20?= =?UTF-8?q?=E7=BB=99src=E9=85=8D=E7=BD=AE=E4=B8=AA=E5=88=AB=E5=90=8D?= =?UTF-8?q?=EF=BC=8C=E4=BE=BF=E4=BA=8E=E8=B7=AF=E5=BE=84=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 3 +++ webpack/webpack.common.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index a964cc231..02dacc43b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,9 @@ "noFallthroughCasesInSwitch": true, "emitDeclarationOnly": true, "allowJs": true, + "paths": { + "@/*": ["./src/*"] + } }, "include": [ "typescript/*.ts", diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index e19801a99..bded912e7 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -33,6 +33,9 @@ module.exports = { resolve: { mainFields: ['module', 'main'], extensions: ['.js', '.ts'], + alias: { + "@": path.resolve(__dirname, '../src'), + }, }, module: { rules: [