Home > @lynx-js/rspeedy > TransformImport

TransformImport interface

The TransformImport option transforms the import paths to enable modular imports from subpaths of third-party packages, similar to the functionality provided by babel-plugin-import.

Signature:

export interface TransformImport

Properties

Property Modifiers Type Description
camelToDashComponentName? boolean | undefined (Optional) Whether to convert camelCase imports to kebab-case.
customName? string | undefined (Optional) Customize the transformed path.
libraryDirectory? string | undefined (Optional) Used to splice the transformed path, the splicing rule is ${libraryName}/${libraryDirectory}/${member}, where member is the imported member.
libraryName string The original import path that needs to be transformed.
transformToDefaultImport? boolean | undefined (Optional) Whether to convert import statements to default imports.
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。