Currently this plugin converts all module imports into defult ones.
But some libraries have modules with named exports instead of defaults.
For example, @radix-ui:
import { Button } from "@radix-ui/themes"
should be transformed into:
import { Button } from "@radix-ui/themes/dist/esm/components/button"
Would be great to have an option like namedImport: boolean for items in settings array.
So it would do smth like this:
// importSpecifierComponent
const importDeclaration = option.namedImport ? `{${local.name}}` : local.name
return `import ${importDeclaration} from "${finalComponentPath}"
Currently this plugin converts all module imports into defult ones.
But some libraries have modules with named exports instead of defaults.
For example,
@radix-ui:should be transformed into:
Would be great to have an option like
namedImport: booleanfor items in settings array.So it would do smth like this: