remoteType
remoteType specifies the external module type for remote containers, determining how the runtime loads remote entries.
- Type:
ExternalsType - Required: No
- Default:
'script'
Usage
remoteType controls how webpack/rspack loads remote container scripts at runtime. Common values:
Tip
In most cases you do not need to set remoteType manually — the default 'script' works for browser environments. Node.js server-side scenarios typically require 'commonjs2' or 'node-commonjs'.
- Example