You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm interested in defining a basic federation configuration for multiple projects
Example:
A proprietary library that defines a base createModuleFederationConfig and has override support in the project that is used. In addition, I would like to define the runtime plugin directly from this library, to avoid repetition in the projects
Is there a way to use runtimePlugins: [runtimePlugin()] instead of using runtimePlugins: [path.resolve(__dirname, './runtimePlugin.ts')]?
In the second way, I get an error when trying to use it directly from the library... being forced to use the runtime plugin file in the project again
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm interested in defining a basic federation configuration for multiple projects
Example:
A proprietary library that defines a base
createModuleFederationConfig
and has override support in the project that is used. In addition, I would like to define the runtime plugin directly from this library, to avoid repetition in the projectsIs there a way to use
runtimePlugins: [runtimePlugin()]
instead of using runtimePlugins:[path.resolve(__dirname, './runtimePlugin.ts')]
?In the second way, I get an error when trying to use it directly from the library... being forced to use the runtime plugin file in the project again
my lib
my project (module-federation.config):
Beta Was this translation helpful? Give feedback.
All reactions