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: [