babel-plugin-rsuite

A bable plugin, Modular import components for rsuite.

Usage no npm install needed!

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

README

babel-plugin-rsuite

A bable plugin, Modular import components for rsuite

Example

import { Button } from 'rsuite';
ReactDOM.render(<Button>xxxx</Button>);

      ↓ ↓ ↓ ↓ ↓ ↓

var _Button = require('rsuite/lib/Button');
ReactDOM.render(<_Button>xxxx</_Button>);