# babel-plugin-transform-carbon-imports

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

Latest version **9.1.2** (published 2018-10-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-carbon-imports
pnpm add babel-plugin-transform-carbon-imports
yarn add babel-plugin-transform-carbon-imports
bun add babel-plugin-transform-carbon-imports
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 9.1.2 |
| Published | 2018-10-18 |
| First published | 2018-04-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 148.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9543 |
| Maintainers | carbon-bot, joshblack |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-carbon-imports
- Repository: https://github.com/carbon-design-system/carbon/tree/master/packages/babel-plugin-transform-carbon-imports
- Homepage: http://carbondesignsystem.com
- Issues: https://github.com/carbon-design-system/carbon/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-carbon-imports

## Recent versions

- 9.1.2 (latest) — 2018-10-18
- 9.1.1 — 2018-10-10
- 9.1.0 — 2018-10-10
- 9.0.3 — 2018-07-06
- 9.0.2 — 2018-06-06
- 9.0.0 — 2018-04-23
- 9.0.0-alpha.1 — 2018-04-18
- 9.0.0-alpha.0 — 2018-04-09

## README

# `babel-plugin-transform-carbon-imports`

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

## Usage

Run the following command using [npm](https://www.npmjs.com/):

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

If you prefer [Yarn](https://yarnpkg.com/en/), use the following command instead:

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

Then, in your babel config you add the following:

```json
{
  "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:

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

---
_Source: https://npm.io/package/babel-plugin-transform-carbon-imports · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
