babel-plugin-import-bk-magic-vue
JSON →A Babel plugin that provides auto-import of component styles for the bk-magic-vue component library. Currently at version 2.1.11, this plugin allows developers to use shorthand imports (both named and default) that automatically include the component's CSS and the common stylesheet (common.min.css). It simplifies the development workflow by eliminating the need for manual style imports. The plugin supports importSpecifier syntax (e.g., import { bkDropdownMenu } from 'bk-magic-vue') and importDefaultSpecifier syntax (e.g., import bkRadio from 'bk-magic-vue/lib/radio'), and also handles full library import. It is configurable via .babelrc with a baseLibName option, defaulting to 'bk-magic-vue'.