
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
webpack-lambda-layer-plugin
Advanced tools
Webpack plugin to export used node_modules as a separate package for the lambda layer
Efficiently Package Required Node Modules for Your Lambda Layer
Webpack Lambda Layer Plugin is a tool designed to simplify the process of packaging code libraries for your Lambda functions. The plugin works by bundling the necessary node dependencies as a separate package, which can then be utilized in your Lambda Layer, providing an efficient way to share code libraries with multiple Lambda Functions.
Simultaneously, these dependencies will get externalized from your Lambda Function bundles, leading to reduced bundle sizes and improved build and deployment times.
yarn
yarn add --dev webpack-lambda-layer-plugin
npm
npm i --save-dev webpack-lambda-layer-plugin
webpack.config.js
import { LambdaLayerExternalsPlugin } from "webpack-lambda-layer-plugin";
const config: WebpackConfiguration = {
entry: "index.js",
output: {
filename: "[name]/handler.js",
path: path.resolve("dist"),
},
plugins: [
new LambdaLayerExternalsPlugin(),
],
}
export default config;
This will generate a zip archive dist/externals.zip containing the used node_modules dependencies, alongside your Lambda Function bundles.
FAQs
Webpack plugin to export used node_modules as a separate package for the lambda layer
We found that webpack-lambda-layer-plugin 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.