1.1.0 • Published 25 days ago

@hrc/babel-config v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

@hrc/babel-config

Create a Babel config for component packages of <hrc />

Installation

npm install @hrc/babel-config babel-plugin-import

Usage

In your .babelrc.js file:

import hrcConfig from "@hrc/babel-config";

// single package
const plugins = [...otherPlugins, ...hrcConfig("input")];

// multiple packages
const plugins = [...otherPlugins, ...hrcConfig(["button", "input"])];

// all supported packages
const plugins = [...otherPlugins, ...hrcConfig("all")];

module.exports = { plugins };

Documentation

1.1.0

25 days ago

1.0.0

2 months ago