mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 15:13:30 +00:00
16 lines
496 B
TypeScript
16 lines
496 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
const rootDir = fileURLToPath(new URL('./', import.meta.url))
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: [
|
|
{ find: /^@\/(.*)$/, replacement: `${rootDir}$1` },
|
|
{ find: /^~\/(.*)$/, replacement: `${rootDir}$1` },
|
|
{ find: /^@@\/(.*)$/, replacement: `${rootDir}$1` },
|
|
{ find: /^~~\/(.*)$/, replacement: `${rootDir}$1` },
|
|
],
|
|
},
|
|
})
|