Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/babel-plugin-transform-imports

Package Overview
Dependencies
Maintainers
0
Versions
1462
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/babel-plugin-transform-imports

A babel plugin made by Instructure Inc.

  • 10.2.2-snapshot-3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
283
decreased by-73.05%
Maintainers
0
Weekly downloads
 
Created
Source

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'

Note that this plugin will fail if the exported name is not the filename! This means that it cannot handle multiple exports from the same file.

npm MIT License Code of Conduct

A babel plugin made by Instructure Inc.

Installation

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

FAQs

Package last updated on 05 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc