Skip to content

Commit

Permalink
feat(config-utils): Warn if nothing is exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
bastilian committed May 15, 2024
1 parent c9bfeeb commit cbb1195
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/config-utils/src/federated-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { relative, resolve } from 'path';
import { DynamicRemotePlugin, EncodedExtension, PluginBuildMetadata, WebpackSharedConfig } from '@openshift/dynamic-plugin-sdk-webpack';
import jsVarName from './jsVarName';
import fecLogger, { LogType } from './fec-logger';

const defaultPluginMetaDataJSON = {
version: '1.0.0',
Expand Down Expand Up @@ -113,6 +114,10 @@ const federatedModules = ({
}
}

if (!exposes) {
fecLogger(LogType.warn, 'No exposed modules provided! Falling back to ./src/AppEntry as "./RootApp"');
}

const pluginMetadataInternal = {
...defaultPluginMetaDataJSON,
name: appName,
Expand Down

0 comments on commit cbb1195

Please sign in to comment.