{"id":27624,"library":"build-plugin-component-multiple","title":"Build Plugin Component Multiple","description":"build-plugin-component-multiple is a build plugin for component development, currently at version 1.0.0-beta.53, with rapid beta releases. It extends build-plugin-component to support multiple component entries and outputs in a single build, differentiating itself by enabling monorepo-style component libraries without separate packages. It is primarily used with build-scripts and React component development.","status":"active","version":"1.0.0-beta.53","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","plugin"],"install":[{"cmd":"npm install build-plugin-component-multiple","lang":"bash","label":"npm"},{"cmd":"yarn add build-plugin-component-multiple","lang":"bash","label":"yarn"},{"cmd":"pnpm add build-plugin-component-multiple","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package is ESM-only since v1.0.0-beta.1; CommonJS require may fail in modern Node versions.","wrong":"const buildPluginComponentMultiple = require('build-plugin-component-multiple')","symbol":"default","correct":"import buildPluginComponentMultiple from 'build-plugin-component-multiple'"},{"note":"BabelPluginReplaceStyles is a named export, not default.","wrong":"import BabelPluginReplaceStyles from 'build-plugin-component-multiple'","symbol":"BabelPluginReplaceStyles","correct":"import { BabelPluginReplaceStyles } from 'build-plugin-component-multiple'"},{"note":"defineConfig is a helper for TypeScript projects to get type hints.","wrong":null,"symbol":"defineConfig","correct":"import { defineConfig } from 'build-plugin-component-multiple'"}],"quickstart":{"code":"import buildPluginComponentMultiple from 'build-plugin-component-multiple';\n\nexport default {\n  plugins: [\n    buildPluginComponentMultiple()\n  ],\n  // component config\n  component: {\n    entries: {\n      'button': './src/button/index.tsx',\n      'dialog': './src/dialog/index.tsx'\n    }\n  }\n};","lang":"typescript","description":"This shows how to set up the plugin to build multiple components from a single project."},"warnings":[{"fix":"Upgrade to build-scripts@2 or later.","message":"In v1.0.0-beta.30, the plugin API changed: now requires build-scripts >= 2.0.0.","severity":"breaking","affected_versions":">=1.0.0-beta.0 <1.0.0-beta.30"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run npm install --save-dev build-plugin-component-multiple","cause":"Package not installed or typo in package name.","error":"Cannot find module 'build-plugin-component-multiple'"},{"fix":"Use import buildPluginComponentMultiple from 'build-plugin-component-multiple'","cause":"Attempted to use default import as a named import, or wrong import style.","error":"TypeError: buildPluginComponentMultiple is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}