This commit is contained in:
Joshen Lim committed 2026-03-05 20:22:30 +08:00
1 parent 149aa5cac2
commit f7d15810bc
1 file changed
+10 -4
+10 -4
View File
@@ -1,10 +1,16 @@
import { resolve } from 'node:path'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
const __dirname = dirname(fileURLToPath(import.meta.url))
export default defineConfig({
resolve: {
alias: {
'@studio-data': resolve(__dirname, '../../apps/studio/data'),
},
alias: [
{
find: /^@studio-data\/(.*)/,
replacement: resolve(__dirname, '../../apps/studio/data/$1'),
},
],
},
})