-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathfec.config.js
30 lines (29 loc) · 1.17 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
const { resolve } = require('path');
const packageJson = require('./package.json');
module.exports = {
appUrl: '/insights/dashboard',
debug: true,
useProxy: process.env.PROXY === 'true',
proxyVerbose: true,
plugins: [],
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
moduleFederation: {
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: packageJson.dependencies['react-router-dom'],
requiredVersion: '>=6.0.0 <7.0.0'
}
}
],
exposes: {
'./AppZeroState': resolve(__dirname, './src/PresentationalComponents/ZeroState/AppZeroState.js'),
'./ZeroStateBanner': resolve(__dirname, './src/PresentationalComponents/ZeroState/ZeroStateBanner.js'),
'./AppSection': resolve(__dirname, './src/PresentationalComponents/ZeroState/AppSection.js'),
'./ZeroStateFooter': resolve(__dirname, './src/PresentationalComponents/ZeroState/ZeroStateFooter.js'),
'./RootApp': resolve(__dirname, './src/AppEntry.js')
}
}
};