babel-plugin-dash-import
babel plugin for DASH-CASE-STYLE import
Last updated 3 months ago by renwangyu .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-plugin-dash-import 
SYNC missed versions from official npm registry.

babel-plugin-dash-import

  • install

    npm install babel-plugin-dash-import
    
  • use

    .babelrc file

    {
      ...
      "plugins": [
        ["dash-import", { libraryName: '@tencent/qd-base' }],
        ...
      ]
      ...
    }
    
  • effect

    import { OrgStaffPicker, SearchBox } from '@tencent/qd-base';
    
    // transform to
    
    import OrgStaffPicker from "@tencent/qd-base/lib/org-staff-picker";
    import SearchBox from "@tencent/qd-base/lib/search-box";
    
  • options

    libraryName is required!

    the plugin will do nothing if the libraryName is empty ????


for fun : )

Current Tags

  • 1.0.0                                ...           latest (3 months ago)

1 Versions

  • 1.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |