@instructure/babel-plugin-transform-imports

9.0.1 • Public • Published

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:

// a named member import:
import { Text } from '@instructure/ui-elements'

would be converted to

// a named import using the full module path:
import { Text } from '@instructure/ui-elements/lib/Text'

Note that any default imports you are currently using will not be transformed:

// a default import using the full path (will not be transformed):
import Text from '@instructure/ui-elements/lib/Text'

npm  MIT License  Code of Conduct

A babel plugin made by Instructure Inc.

Installation

npm install @instructure/babel-plugin-transform-imports

/@instructure/babel-plugin-transform-imports/

    Package Sidebar

    Install

    npm i @instructure/babel-plugin-transform-imports

    Weekly Downloads

    2,774

    Version

    9.0.1

    License

    MIT

    Unpacked Size

    123 kB

    Total Files

    9

    Last publish

    Collaborators

    • bpjatacsuk
    • ajmal-esa
    • razorsh4rk
    • david.wenzlick.inst
    • robinkuss64
    • ardena
    • jcflow
    • jguardadom
    • jdewar
    • xcudder
    • ericsaupe
    • joyenjoyer
    • omarpr
    • cguanzon-inst
    • sarahgerard
    • jacksonhowe
    • jakeoeding
    • camray
    • cjs118
    • matyas.szabo
    • herrtopi
    • angela.gomba
    • kyler-instructure
    • instuici
    • eschiebel
    • maths22
    • jcrystal
    • skacsmark
    • itadmins
    • quizzesuici
    • instructure-toolsmiths-service-user
    • aogata-inst
    • instout