Skip to content

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