🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
Version published
Maintainers
2
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