chore(deps): remove dependency vite-tsconfig-paths
- fix vitest.config.js and tsconfig path translation myself
This commit is contained in:
parent
8d70ac96f8
commit
427f4182a5
3 changed files with 6 additions and 32 deletions
|
|
@ -2,15 +2,19 @@
|
|||
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
import { resolve } from 'path'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
tsconfigPaths(),
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, '.')
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Reference in a new issue