
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
ignore-webpack-plugin
Advanced tools
Excludes dynamically imported dependencies from the output bundle.
This Webpack plugin excludes dynamically imported dependencies from the output bundle. This is often used for scenarios such as server-side rendering / pre-rendering (SSR).
webpack.config.js
const { IgnoreAsyncImportsPlugin } = require("ignore-webpack-plugin");
module.exports = [
// The core application bundle for browsers.
{
name: "app",
entry: "./src/index",
/* ... other settings ... */
},
// Additional (reverse proxy) bundle for Cloudflare Workers.
{
name: "proxy",
entry: "./src/proxy",
output: { filename: "proxy.js" },
target: "browserslist:last 2 Chrome versions",
/* ... other settings ... */
plugins: [new IgnoreAsyncImportsPlugin()],
},
];
All the import(...)
expressions within the "proxy" bundle in the example above
will be replaced with Promise.resolve(...)
.
Copyright © 2021-present Kriasoft. This source code is licensed under the MIT license found in the LICENSE file.
Made with ♥ by Konstantin Tarkus (@koistya, blog) and contributors.
FAQs
Excludes dynamically imported dependencies from the output bundle.
The npm package ignore-webpack-plugin receives a total of 527 weekly downloads. As such, ignore-webpack-plugin popularity was classified as not popular.
We found that ignore-webpack-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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.