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.
esbuild-plugin-webpack-bridge
Advanced tools
A plugin that allows to use webpack loaders with esbuild.
Current set of plugins for esbuild is not enough for production development, but webpack's community already has everything that developers may want to. So why not use it?
npm install --save-dev esbuild-plugin-webpack-bridge
Define plugin in the plugins
section of esbuild config like this:
const esbuild = require('esbuild');
const webpackBridge = require('esbuild-plugin-webpack-bridge');
esbuild.build({
// ...
plugins: [
webpackBridge({
module: {
rules: [
{
test: /\.jsx?$/,
esbuildLoader: 'js',
use: [
{
loader: 'babel-loader',
options: {
presets: [
['@babel/preset-env', { targets: { ie: 11 } }],
],
},
},
],
},
{
test: /\.scss$/,
esbuildLoader: 'css',
use: [
{
loader: 'sass-loader',
options: {
implementation: require('sass'),
},
},
],
},
],
},
}),
],
})
Note: the plugin is currently under development, so the API may change during the time. Also there're not so many loaders' features supported. Please, check test/ folder for more examples.
Probably works correctly:
FAQs
Allows to use webpack loaders with esbuild
We found that esbuild-plugin-webpack-bridge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.