@alita/autoimport
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

@alita/autoimport

See our website alitajs for more information.

安装使用

pnpm i @alita/autoimport

plugins:['@alita/autoimport']

autoImport:{
    libs:[ ],
}

api.addLowImportLibs

api.addLowImportLibs(()=>[
    // import * as xxx from 'xxx';
    { namespaceImport: 'xxx' },
    // import xxx from 'xxx';
    { defaultImport: 'xx' },
     // import { 'computed', 'ref' } from 'xxx';
    { importFrom: 'xxx', members: ['computed', 'ref'] },
])

Readme

Keywords

none

Package Sidebar

Install

npm i @alita/autoimport

Weekly Downloads

13

Version

3.1.0

License

MIT

Unpacked Size

12.7 kB

Total Files

8

Last publish

Collaborators

  • pengyh
  • ashoka_j
  • hang1017
  • hammersjs
  • cjy0208
  • xiaohuoni