Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow federation-config as esm and sync/async exporting of config #383

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mchlbrnd
Copy link

@mchlbrnd mchlbrnd commented Nov 18, 2023

This PR allows federation-config to be esm module that returns FederationConfig or sync/async function that returns FederationConfig. Use case includes to be able to add additional async logic before returning FederationConfig. for example:

import { withNativeFederation } from '@angular-architects/native-federation/config.js';

export default async function() {
  const config = await fetch('some-config-url');
  return withNativeFederation(config);
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant