feat: add import alias path for pswui

This commit is contained in:
Shinwoo PARK 2024-06-13 18:05:28 +00:00
parent 0caf5f4a65
commit f68e54670f
2 changed files with 5 additions and 5 deletions

View File

@ -23,11 +23,11 @@
/* Path */
"baseUrl": "./",
"paths": {
"@components/*": ["components/*"],
"@pswui/*": ["src/pswui/*"],
"@/*": ["src/*"],
"@pswui-lib": ["lib.tsx"]
"@pswui-lib": ["src/pswui/lib.tsx"]
}
},
"include": ["components", "src", "./lib.tsx"],
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}

View File

@ -26,9 +26,9 @@ export default defineConfig({
},
resolve: {
alias: {
"@components": resolve(__dirname, "./components"),
"@pswui": resolve(__dirname, "./src/pswui/components"),
"@": resolve(__dirname, "./src"),
"@pswui-lib": resolve(__dirname, "./lib.tsx"),
"@pswui-lib": resolve(__dirname, "./src/pswui/lib.tsx"),
},
},
});