build-plugin-stark-module is a build-scripts plugin specifically designed for integrating applications as 'stark modules' within the icestark micro-frontend framework, developed by Alibaba. As of version 2.3.0, this plugin facilitates the build process by allowing developers to configure multiple entry points, optimize module loading performance through external dependencies (similar to Webpack externals), and customize output filenames and minification settings. It primarily functions by extending the build configuration of `@ice/app` or `build-scripts`, where it's specified in the `build.json` file rather than being imported directly into application code. Its stable release cadence is not explicitly stated but appears to follow the larger Ice.js ecosystem's development. Key differentiators include its tight integration with icestark for micro-frontend architectures and its focus on build-time optimizations for such modules.
npm install build-plugin-stark-moduleNo compatibility data collected yet for this library.
Demonstrates how to configure build-plugin-stark-module in a build.json file, setting up multi-module entries and external dependencies.
Ensure configuration is placed in `build.json` within the `plugins` array as a string array: `["build-plugin-stark-module", {...options}]`.Verify that `root` matches the global variable exposed by the external script (e.g., 'React' for React UMD builds) and `url` points to the correct, accessible CDN path for the dependency.
Review the documentation for your specific `build-scripts` version and the `build-plugin-stark-module` to ensure that plugin-specific options are correctly integrated with the global build configuration, especially regarding output paths and asset handling.