Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rollup-plugin-babili

Comandeer36MITdeprecated3.1.1

Due to Babili's name change, new versions of this package are available as rollup-plugin-babel-minify

Simple rollup plugin for minifying code using Babili.

rollup, rollup-plugin, babili, minify

readme

rollup-plugin-babili

Build Status Dependency Status devDependencies Status npm

Allows using Babili minifier with Rollup.

Installation

npm install rollup-plugin-babili [--save-dev]

Usage

import { rollup } from 'rollup';
import babili from 'rollup-plugin-babili';

rollup( {
    entry: './src/index.js',
    plugins: [
        babili( {
            // Options for Babili.
        } )
    ]
} );

For the list of options, check Babili Preset's docs.

There are additional options:

  • comments (default: true): indicates if comments should be preserved in source
  • banner (default: undefined): the comment which should be prepended to the transformed bundle
  • sourceMap (default: true): indicates if sourcemap should be generated

License

See LICENSE file for details.

changelog

rollup-plugin-babili Changelog

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.


3.1.0 – 2017-06-10

Added

  • Add support for Node.js 8 and npm 5.

Changed

  • Update Babili version to ^0.1.2.
  • Update Rollup version to ^0.42.0.
  • Add Rollup as peer dependency.

3.0.0 – 2017-04-22

Changed

  • Handling of banner option should be better now, thanks to Alex Khomchenko!

2.0.0 – 2017-03-18

Changed

  • Update Babili version to ^0.0.12.
  • Update rollup to ^0.41.5

Removed

  • Remove fixMappings, both from code and public API – after upgrading Rollup is not longer needed.

1.1.1 – 2017-01-25

Changed

  • Move changelog to Keep a Changelog standard.

Fixed

  • Apply fixMappings to all mappings.

1.1.0 – 2017-01-21

Added

  • Pass options to Babili preset.

1.0.3 – 2017-01-19

Fixed

  • Fix this changelog (one day I will not forget about it).
  • Explicitly pass preset to babel to avoid problems with node 4.x and npm 2.x.

1.0.2 – 2017-01-19

Fixed

  • Explicitly pass banner plugin to babel to avoid problems with node 4.x and npm 2.x.

1.0.1 – 2017-01-19

Fixed

  • Added support for empty sourcemap's mappings.

1.0.0 – 2017-01-18

Added

  • First working version, yay!