A JavaScript bundler tool that compiles and bundles JavaScript files into a single file for browser use. Version 0.4.8 is the latest stable release, with an unknown release cadence. It differs from bundlers like Webpack or Rollup by providing a simple CLI-only interface with minimal configuration, targeting users who need a quick way to vendor libraries into a single script without complex setup. It supports CommonJS modules and outputs a bundle compatible with script tags. However, the project appears to be in early stages with limited documentation and no recent updates.
npm install vendor-generatorVerified import paths — ran on the pinned version, not inferred.
Shows how to require and invoke vendorGenerator to bundle src/index.js into dist/bundle.js, with minification disabled.
Use a newer version of Node.js >=12, but test for compatibility as dependencies may be outdated.
Consider migrating to actively maintained bundlers like Webpack, Rollup, or esbuild.
Ensure all input files use CommonJS syntax, or transpile ES modules to CommonJS before bundling.
Use const vendorGenerator = require('vendor-generator');Run npm install vendor-generator --save-dev