Search Docs
Home > @lynx-js/rspeedy > TransformImport > libraryDirectory
Used to splice the transformed path, the splicing rule is ${libraryName}/${libraryDirectory}/${member}, where member is the imported member.
${libraryName}/${libraryDirectory}/${member}
Signature:
libraryDirectory?: string | undefined;
The default value is 'lib'.
'lib'
import { Button } from 'foo'
import Button from 'foo/lib/button'