这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/rspeedy > TransformImport > libraryDirectory

TransformImport.libraryDirectory property

Used to splice the transformed path, the splicing rule is ${libraryName}/${libraryDirectory}/${member}, where member is the imported member.

Signature:

libraryDirectory?: string | undefined;

Default Value

'lib'

Example

  • Input:
import { Button } from 'foo'
  • Output:
import Button from 'foo/lib/button'