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

babel-plugin-transform-carbon-imports

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-carbon-imports

> Babel plugin for transforming import paths for `carbon-components-react`

  • 9.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by125%
Maintainers
2
Weekly downloads
 
Created
Source

babel-plugin-transform-carbon-imports

Babel plugin for transforming import paths for carbon-components-react

Usage

Run the following command using npm:

npm i babel-plugin-transform-carbon-imports --save-dev

If you prefer Yarn, use the following command instead:

yarn add babel-plugin-transform-carbon-imports --dev

Then, in your babel config you add the following:

{
  "plugins": ["transform-carbon-imports"]
}

Options

babel-plugin-transform-carbon-imports supports a couple of options, namely:

  • throwOnNamespace: toggle whether you want the plugin to throw when it encounters import * from 'carbon-components-react' syntax.

You can pass in these options when adding the plugin to your babel configuration, for example:

{
  "plugins": [["transform-carbon-imports", { "throwOnNamespace": false }]]
}

FAQs

Package last updated on 18 Oct 2018

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