babel-plugin-drei
Transform drei
named imports to default imports
import Box Sphere from "drei"
into default imports:
import Box from "drei/lib/Box"import Sphere from "drei/lib/Sphere"
Usage
yarn add babel-plugin-drei
Add the plugin to your babel config