Releases: kriasoft/ignore-webpack-plugin
Releases · kriasoft/ignore-webpack-plugin
v0.3.0
v0.2.0
v0.1.1
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).
Usage Example
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()],
},
];