Socket
Socket
Sign inDemoInstall

babel-plugin-transform-carbon-imports

Package Overview
Dependencies
26
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

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`


Version published
Weekly downloads
11
increased by266.67%
Maintainers
2
Install size
149 kB
Created
Weekly downloads
 

Readme

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

Last updated on 18 Oct 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc