Replies: 1 comment
-
no there is not. Cant pass functions to a compiler, only modules. unless you use the vanillia runtime directly to register plugins |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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