-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshared-config.js
More file actions
27 lines (26 loc) · 794 Bytes
/
shared-config.js
File metadata and controls
27 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import path from 'path';
/**
* Shared configuration for Vite and Vitest.
* Centralizes path aliases to avoid duplication between build and test configs.
*/
export const aliases = [
{ find: '@', replacement: path.resolve(process.cwd(), './src') },
{
find: '@components',
replacement: path.resolve(process.cwd(), './src/components'),
},
{
find: '@features',
replacement: path.resolve(process.cwd(), './src/features'),
},
{ find: '@hooks', replacement: path.resolve(process.cwd(), './src/hooks') },
{
find: '@context',
replacement: path.resolve(process.cwd(), './src/context'),
},
{ find: '@game', replacement: path.resolve(process.cwd(), './src/game') },
{
find: '@assets',
replacement: path.resolve(process.cwd(), './src/assets'),
},
];