-
Notifications
You must be signed in to change notification settings - Fork 64
/
fec.config.js
138 lines (136 loc) · 4.28 KB
/
fec.config.js
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
const { resolve } = require('path');
const packageJson = require('./package.json');
const webpack = require('webpack');
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');
const bundle = 'insights';
const appName = packageJson[bundle].appname;
module.exports = {
appName,
appUrl: `/${bundle}/${appName}`,
useProxy: process.env.PROXY === 'true',
debug: true,
devtool: 'hidden-source-map',
plugins: [
new webpack.DefinePlugin({
IS_DEV: process.env.NODE_ENV !== 'production',
}),
// Put the Sentry Webpack plugin after all other plugins
...(process.env.SENTRY_AUTH_TOKEN
? [
sentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'red-hat-it',
project: 'inventory-rhel',
_experiments: {
moduleMetadata: ({ release }) => ({
dsn: 'https://[email protected]/4507454722211840',
release,
}),
},
}),
]
: []),
],
moduleFederation: {
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: packageJson.dependencies['react-router-dom'],
requiredVersion: '>=6.0.0 <7.0.0',
},
},
],
exposes: {
// Application root
'./RootApp': resolve(__dirname, '/src/AppEntry'),
// System detail
'./SystemDetail': resolve(
__dirname,
'/src/components/SystemDetails/GeneralInfo.js'
),
// System detail cards
'./GeneralInformation': resolve(
__dirname,
'/src/components/GeneralInfo/GeneralInformation/GeneralInformation.js'
),
'./SystemCard': resolve(
__dirname,
'/src/components/GeneralInfo/SystemCard/SystemCard.js'
),
'./OperatingSystemCard': resolve(
__dirname,
'/src/components/GeneralInfo/OperatingSystemCard/OperatingSystemCard.js'
),
'./InfrastructureCard': resolve(
__dirname,
'/src/components/GeneralInfo/InfrastructureCard/InfrastructureCard.js'
),
'./ConfigurationCard': resolve(
__dirname,
'/src/components/GeneralInfo/ConfigurationCard/ConfigurationCard.js'
),
'./CollectionCard': resolve(
__dirname,
'/src/components/GeneralInfo/CollectionCard/CollectionCard.js'
),
'./BiosCard': resolve(
__dirname,
'/src/components/GeneralInfo/BiosCard/BiosCard.js'
),
'./DataCollectorsCard': resolve(
__dirname,
'/src/components/GeneralInfo/DataCollectorsCard/DataCollectorsCard.js'
),
'./LoadingCard': resolve(
__dirname,
'/src/components/GeneralInfo/LoadingCard/LoadingCard.js'
),
'./TextInputModal': resolve(
__dirname,
'/src/components/GeneralInfo/TextInputModal/TextInputModal.js'
),
// System detail data providers
'./selectors': resolve(
__dirname,
'/src/components/GeneralInfo/selectors/index.js'
),
'./dataMapper': resolve(
__dirname,
'/src/components/GeneralInfo/dataMapper/index.js'
),
// Inventory modules
'./InventoryTable': resolve(__dirname, '/src/modules/InventoryTable.js'),
'./AppInfo': resolve(__dirname, '/src/modules/AppInfo.js'),
'./InventoryDetailHead': resolve(
__dirname,
'/src/modules/InventoryDetailHead.js'
),
'./DetailHeader': resolve(__dirname, '/src/modules/DetailHeader.js'),
'./InventoryDetail': resolve(
__dirname,
'/src/modules/InventoryDetail.js'
),
'./TagWithDialog': resolve(__dirname, '/src/modules/TagWithDialog.js'),
'./DetailWrapper': resolve(__dirname, '/src/modules/DetailWrapper.js'),
'./OsFilterHelpers': resolve(
__dirname,
'/src/modules/OsFilterHelpers.js'
),
'./systemProfileStore': resolve(
__dirname,
'/src/store/systemProfileStore.js'
),
'./DeleteModal': resolve(__dirname, '/src/Utilities/DeleteModal.js'),
'./HybridInventoryTabs': resolve(
__dirname,
'/src/modules/HybridInventoryTabs.js'
),
'./ImmutableDevices': resolve(
__dirname,
'/src/modules/ImmutableDevices.js'
),
},
},
};