A webpack plugin (v1.0.0) that removes the runtime bootstrapping code from vendor chunks when using webpack 1.x with CommonsChunkPlugin. It prevents the vendor bundle from re-executing the vendor modules on load, ensuring that the runtime only exists in the main bundle. This plugin is specific to webpack 1.x and is not needed for webpack 2+ where the runtime behavior was changed. It is a niche tool for legacy webpack configurations where splitting vendor bundles incorrectly included runtime code.
npm install webpack-vendor-chunk-pluginVerified import paths — ran on the pinned version, not inferred.
Configures webpack 1.x to extract vendor modules into a separate chunk and removes runtime code from that chunk using VendorChunkPlugin.
Upgrade to webpack 2+ and remove this plugin.
Ensure CommonsChunkPlugin is registered before VendorChunkPlugin.
Use a single chunk name that matches the CommonsChunkPlugin's output chunk.
Ensure vendor modules do not rely on runtime execution order; move side-effectful code to the main bundle.
Run 'npm install webpack-vendor-chunk-plugin --save-dev' and require with correct case: require('webpack-vendor-chunk-plugin')Use CommonJS require: var VendorChunkPlugin = require('webpack-vendor-chunk-plugin');Add CommonsChunkPlugin with the same chunk name before VendorChunkPlugin.
Place CommonsChunkPlugin before VendorChunkPlugin in the plugins array.