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'.
npm install babel-plugin-import-bk-magic-vueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the plugin, configure .babelrc with baseLibName, then use shorthand imports that automatically include component styles.
Upgrade to version 2.x or later.
Only use this plugin in projects that consume bk-magic-vue.
Manually import any needed styles for those helpers, if any.
Use named or per-component imports to reduce bundle size.
Run: npm install babel-plugin-import-bk-magic-vue --save-dev and ensure the plugin name matches exactly.
Ensure your .babelrc contains ["import-bk-magic-vue", { "baseLibName": "bk-magic-vue" }].Install bk-magic-vue: npm install bk-magic-vue and verify the component exists under lib/.
No dependency data recorded yet.