Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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
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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.