Webpack Module Federation Bundle Remote Modules in Build

im using the ModuleFederationPlugin for Webpack to use module federation. its working as expected.

im working on a native mobile app version with Tauri (its basically a native wrapper with a webview). unlike the webapp, id like to have it so it doesnt use remote modules.

is there a simple way to achieve this like a config somewhere like:

{
...
bundle: true // maybe use some env var to set this?
...
}