category: packages
babel-plugin-transform-imports
This will convert any non-default imports that are referencing the package only to reference the full path to the module instead. For example:
import { Text } from '@instructure/ui-elements'
would be converted to
import { Text } from '@instructure/ui-elements/lib/Text'
Note that any default imports you are currently using will not be transformed:
import Text from '@instructure/ui-elements/lib/Text'
A babel plugin made by Instructure Inc.
Installation
npm install @instructure/babel-plugin-transform-imports