babel-plugin-react-bootstrap4

babel-plugin-react-bootstrap4

Usage no npm install needed!

<script type="module">
  import babelPluginReactBootstrap4 from 'https://cdn.skypack.dev/babel-plugin-react-bootstrap4';
</script>

README

babel-plugin-react-bootstrap

Build Status

Install

$ npm i --save-dev babel-plugin-react-bootstrap

Example

Transforms

import { Button } from 'react-bootstrap';

roughly to

import Button from 'react-bootstrap/lib/Button';

Usage

.babelrc

{
  "plugins": ["react-bootstrap"],
  "presets": ["es2015"]
}

Thanks

Heavily inspired by babel-plugin-lodash and babel-plugin-date-fns.