Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
frostney committed Apr 20, 2016
1 parent d358b72 commit 2d8ee25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,8 @@ Rollup requires a rollup-compatible Babel config. Simply change the `es2015` pre
rollup-babel-lib-bundler ./myFancyLibrary.js
```

Call `rollup-babel-lib-bundler` without any arguments to see all options.

The command-line app also supports passing in options through the `package.json`. Simply create a property called `rollupBabelLibBundler`. An example configuration would look like this:
```json
"rollupBabelLibBundler": {
Expand Down Expand Up @@ -84,6 +86,11 @@ The path to the library itself.
###### Default `['umd', 'es6', 'cjs']`
Can be `umd`, `es6`, `cjs`, `iife` or a combination of these.

##### options.postfix
###### Type: `Object`
###### Default `{ cjs: '', es6: '.es2015', umd: '.umd', iife: '.iife' }`
Allows to define custom postfixes for each module type. `.js` will automatically be prepended.

#### options.babel
###### Type: `String` or `Object`
Allow to overwrite the babel configuration. By default its value is `inherit` and it will take the closest `.babelrc` file.
Expand Down

0 comments on commit 2d8ee25

Please sign in to comment.