Skip to content

Releases: kriasoft/ignore-webpack-plugin

v0.3.0

09 May 12:59
8f7a3b8
Compare
Choose a tag to compare

Fixes async dependencies leaking into the output bundle.

v0.2.0

18 Feb 12:44
Compare
Choose a tag to compare

Replaces import(...) exrpessions with Promise.resolve(...).

v0.1.1

17 Feb 10:56
Compare
Choose a tag to compare

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()],
  },
];

v0.1.0

17 Feb 10:20
Compare
Choose a tag to compare
Initial commit