1
0
Fork 0

feat: allowing import /src

This commit is contained in:
Tanimodori 2022-10-27 09:56:35 +08:00
parent 93a7dc74f3
commit 1075d77ba0
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@
"skipLibCheck": true, "skipLibCheck": true,
"paths": { "paths": {
"@/*": ["./src/*"], "@/*": ["./src/*"],
"/src/*": ["./src/*"],
"@ns": ["./NetscriptDefinitions.d.ts"] "@ns": ["./NetscriptDefinitions.d.ts"]
} }
}, },

View File

@ -5,6 +5,7 @@ export default defineConfig({
resolve: { resolve: {
alias: { alias: {
'@': resolve(__dirname, 'src'), '@': resolve(__dirname, 'src'),
'/src': resolve(__dirname, 'src'),
}, },
}, },
build: { build: {