Socket
Socket
Sign inDemoInstall

rollup-plugin-babel-minify

Package Overview
Dependencies
108
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rollup-plugin-babel-minify

Simple rollup plugin for minifying code using babel-minify.


Version published
Weekly downloads
2.5K
decreased by-19.57%
Maintainers
2
Install size
5.95 MB
Created
Weekly downloads
 

Changelog

Source

[10.0.0] – 2020-03-14

Added

  • Support for Rollup ^2.0.0.

Removed

  • BREAKING CHANGE: support for Node 8.

Readme

Source

rollup-plugin-babel-minify

Build Status codecov Dependency Status devDependencies Status npm

Allows using babel-minify with Rollup.

☠️ Project is deprecated! ☠️

Version 10.0.0, released on 2020-03-14, will be the last version of the project, as babel-minify is basically dead. Please consider using rollup-plugin-terser instead.

Installation

npm install rollup-plugin-babel-minify [--save-dev]

Usage

import { rollup } from 'rollup';
import minify from 'rollup-plugin-babel-minify';

rollup( {
	input: './src/index.js',
	plugins: [
		minify( {
			// Options for babel-minify.
		} )
	]
} );

For the list of options, check babel-minify 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;
  • bannerNewLine (since 4.0.0, default: false): indicates if the banner comment should be followed by a new line;
  • sourceMap (default: true): indicates if sourcemap should be generated;
  • plugins (since 6.2.0): indicates which Babel plugins should be loaded alongside minify preset; two plugins are loaded by default:

Check API docs for more detailed description.

License

See LICENSE file for details.

Keywords

FAQs

Last updated on 14 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc