fix(nuxt): edit path aliases

rollup fucking sucks
This commit is contained in:
parent 63eafa84bf
commit 82de608a70
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
2 changed files with 16 additions and 3 deletions

@ -115,6 +115,19 @@ export default defineNuxtConfig({
// },
// },
// ssr: false,
alias: {
"@models": "./lib/models",
"@client": "./lib/client",
"@server": "./lib/server",
"@models/*": "./models/*",
"@client/*": "./lib/client/*",
"@server/*": "./lib/server/*",
// "@models/**": "./models/**",
// "@client/**": "./lib/client/**",
// "@server/**": "./lib/server/**",
"@functions": "./lib/functions.ts",
"@dbconfig": "./lib/dbconfig.ts",
},
sourcemap: {
server: true,
client: true,

@ -13,9 +13,9 @@
"@models/*": ["./models/*"],
"@client/*": ["./lib/client/*"],
"@server/*": ["./lib/server/*"],
"@models/**": ["./models/**"],
"@client/**": ["./lib/client/**"],
"@server/**": ["./lib/server/**"],
// "@models/**": ["./models/**"],
// "@client/**": ["./lib/client/**"],
// "@server/**": ["./lib/server/**"],
"@functions": ["./lib/functions.ts"],
"@dbconfig": ["./lib/dbconfig.ts"]
}