Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
rollup-plugin-babel-minify
Advanced tools
Simple rollup plugin for minifying code using babel-minify.
Allows using babel-minify with Rollup.
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.
npm install rollup-plugin-babel-minify [--save-dev]
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.
See LICENSE file for details.
[10.0.0] – 2020-03-14
^2.0.0
.FAQs
Simple rollup plugin for minifying code using babel-minify.
The npm package rollup-plugin-babel-minify receives a total of 5,796 weekly downloads. As such, rollup-plugin-babel-minify popularity was classified as popular.
We found that rollup-plugin-babel-minify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.