build-plugin-fusion

raw JSON →
0.1.23 verified Sat Apr 25 auth: no javascript maintenance

Plugin for build scripts to use Fusion component library (Alibaba's React UI kit). Current stable version is 0.1.23. Integrates with build-scripts and provides configuration for Fusion components. Requires sass and webpack@4 as peer dependencies. This package is part of the ICE ecosystem but is not actively maintained; for new projects, consider using @ice/app's plugin system directly.

error Error: Cannot find module 'sass'
cause Missing peer dependency sass
fix
npm install sass@^1.0.0 --save-dev
error Error: Cannot find module 'webpack'
cause Missing peer dependency webpack@4
fix
npm install webpack@4 --save-dev
breaking Requires webpack@4; will fail with webpack 5
fix Use a compatible build-scripts version that supports webpack@4, or migrate to @ice/app with its own plugins.
deprecated Part of the legacy ICE framework; new projects should use @ice/app
fix Replace with @ice/app and its plugins (e.g., @ice/plugin-fusion if available).
gotcha Theme configuration may not apply if themePackage is not installed or mismatched
fix Ensure the themePackage is installed and version matches Fusion component version.
npm install build-plugin-fusion
yarn add build-plugin-fusion
pnpm add build-plugin-fusion

Shows how to configure build-plugin-fusion in build-scripts build.config.js to integrate Fusion components with theme support.

// build.config.js
module.exports = {
  plugins: [
    ['build-plugin-fusion', {
      themePackage: '@alifd/theme-xxx',
      themeConfig: {},
      // Specify the next version
      nextVersion: '^1.0.0'
    }]
  ]
};