The compiled build artifacts of Reduck use ES6 syntax by default. If you need to support older versions of browsers, please include all packages under the @modern-js-reduck
namespace in your application's build process.
Reduck uses @babel/preset-env
with specific configurations.
When a microfrontend sub-application model accesses the main application model and the model has not yet been mounted on the main application, it will be automatically mounted on the sub-application.
Example:
To avoid accidental downgrades, it is recommended to pre-mount the model that the main application needs to share: