@redhat-cloud-services/frontend-components-config 4.6.21 → 4.6.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-config",
3
- "version": "4.6.21",
3
+ "version": "4.6.22",
4
4
  "description": "Config plugins and settings for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -3,8 +3,15 @@ const { resolve } = require('path');
3
3
  const fedModulePlugin = require('@redhat-cloud-services/frontend-components-config/federated-modules');
4
4
 
5
5
  const rootDir = process.env.FEC_ROOT_DIR || process.cwd();
6
+ const fecConfig = require(process.env.FEC_CONFIG_PATH);
6
7
 
7
- const plugins = [fedModulePlugin({ root: rootDir })];
8
+ const plugins = [
9
+ fedModulePlugin({
10
+ root: rootDir,
11
+ /** Load optional config for federated modules */
12
+ ...fecConfig.moduleFederation,
13
+ }),
14
+ ];
8
15
 
9
16
  // Save 20kb of bundle size in prod
10
17
  if (process.env.NODE_ENV === 'production') {