
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
babili-webpack-plugin
Advanced tools
npm install babili-webpack-plugin --save-dev
// webpack.config.js
const BabiliPlugin = require("babili-webpack-plugin");
module.exports = {
entry: //...,
output: //...,
plugins: [
new BabiliPlugin(babiliOptions, overrides)
]
}
babiliOptions
are passed on to the babili preset. Check https://github.com/babel/babili/tree/master/packages/babel-preset-babili#options. Default: {}
.
test
: JS file extension regex. Default: /\.js($|\?)/i
comments
: Preserve Comments. Default: /@preserve|@licen(s|c)e/
. falsy value to remove all comments. Accepts function, object with property test (regex), and values.sourceMap
: Default: uses webpackConfig.devtool. Set this to override that.parserOpts
: Configure babel with special parser options.babel
: Pass in a custom babel-core instead. require("babel-core")
babili
: Pass in a custom babili preset instead - require("babel-preset-babili")
.
``You can also use babel-loader for webpack and include babili
as a preset and should be much faster than using this - as babili will operate on smaller file sizes. But then, why does this plugin exist at all? -
node_modules
from being run through the babel-loader, babili optimizations are not applied to the excluded files as it doesn't pass through the minifier.
Boopathi Rajaa |
Juho Vepsäläinen |
Joshua Wiens |
Kees Kluskens |
Sean Larkin |
FAQs
Babili Plugin for Webpack
The npm package babili-webpack-plugin receives a total of 3,243 weekly downloads. As such, babili-webpack-plugin popularity was classified as popular.
We found that babili-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.