-
Notifications
You must be signed in to change notification settings - Fork 7
/
arui-scripts.config.ts
54 lines (52 loc) · 1.66 KB
/
arui-scripts.config.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { PackageSettings } from 'arui-scripts';
const aruiScriptsConfig: PackageSettings = {
presets: './presets',
serverPort: 3001,
clientServerPort: 8082,
devServerCors: true,
clientPolyfillsEntry: null,
serverEntry: './src/server/index',
clientEntry: './src/client',
componentsTheme: '../../node_modules/@alfalab/core-components/themes/corp.css',
keepCssVars: false,
codeLoader: 'swc',
jestCodeTransformer: 'swc',
debug: true,
compatModules: {
shared: {
react: 'react',
'react-dom': 'reactDOM',
},
exposes: {
'ModuleCompat': {
entry: './src/modules/module-compat/index',
},
'FactoryModuleCompat': {
entry: './src/modules/factory-module-compat/index',
},
'ServerStateModuleCompat': {
entry: './src/modules/server-state-module-compat/index',
externals: {
react: 'react',
'react-dom': 'reactDOM',
}
},
'ModuleAbstractCompat': {
entry: './src/modules/module-abstract/index',
}
}
},
modules: {
shared: {
'react': '^17.0.0',
'react-dom': '^17.0.0',
},
exposes: {
'Module': './src/modules/module/index',
'ServerStateFactoryModule': './src/modules/server-state-factory-module/index',
'ServerStateModule': './src/modules/server-state-module/index',
'ModuleAbstract': './src/modules/module-abstract/index',
}
}
}
export default aruiScriptsConfig;