A Webpack plugin that prebundles vendor and common code using esbuild, reducing the number of modules Webpack needs to process and boosting build speed. Version 1.0.2 is the latest stable release. It uses esbuild for fast bundling and can replace DLLPlugin without the need for pre-building or committing bundles to Git. Supports watch mode via chokidar. Differentiators: simpler than DLLPlugin, no manual DLL build step, and automatically externalizes prebundled modules via Webpack externals.
npm install webpack-prebundle-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures the plugin to prebundle vendors and common code, reducing Webpack module count and improving build speed.
Use require('webpack-prebundle-plugin') or use a bundler/transpiler to handle CJS interop.Avoid manually setting externals for the same modules; let the plugin handle it.
Ensure chokidar is installed as a dependency (it's a peer dependency).
Refer to the README or TypeScript definitions for current options.
Run 'npm install chokidar' or 'yarn add chokidar'.
Use 'const webpackPrebundlePlugin = require('webpack-prebundle-plugin');' then 'new webpackPrebundlePlugin(...)'.Run 'npm install esbuild' or 'yarn add esbuild'.
Use path.resolve to provide an absolute path, e.g., path.resolve(__dirname, 'vendors.js').