-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.common.mjs
18 lines (16 loc) · 988 Bytes
/
webpack.common.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
const alias = {
'@dark-engine/core': resolve(__dirname, './packages/core/src'),
'@dark-engine/platform-browser': resolve(__dirname, './packages/platform-browser/src'),
'@dark-engine/platform-server': resolve(__dirname, './packages/platform-server/src'),
'@dark-engine/platform-native': resolve(__dirname, './packages/platform-native/src'),
'@dark-engine/platform-desktop': resolve(__dirname, './packages/platform-desktop/src'),
'@dark-engine/web-router': resolve(__dirname, './packages/web-router/src'),
'@dark-engine/native-navigation': resolve(__dirname, './packages/native-navigation/src'),
'@dark-engine/animations': resolve(__dirname, './packages/animations/src'),
'@dark-engine/styled': resolve(__dirname, './packages/styled/src'),
'@dark-engine/data': resolve(__dirname, './packages/data/src'),
};
export { alias };