{"id":18901,"library":"vendor-generator","title":"vendor-generator","description":"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.","status":"maintenance","version":"0.4.8","language":"javascript","source_language":"en","source_url":"https://github.com/halo-design/vendor-generator","tags":["javascript","bundle","cli"],"install":[{"cmd":"npm install vendor-generator","lang":"bash","label":"npm"},{"cmd":"yarn add vendor-generator","lang":"bash","label":"yarn"},{"cmd":"pnpm add vendor-generator","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Utilized for internal utility functions such as file system operations and module resolution.","package":"@halo-design/utils","optional":true}],"imports":[{"note":"This package is CommonJS only and does not support ESM imports.","wrong":"import vendorGenerator from 'vendor-generator'","symbol":"vendorGenerator","correct":"const vendorGenerator = require('vendor-generator')"}],"quickstart":{"code":"const vendorGenerator = require('vendor-generator');\nconst path = require('path');\n\nvendorGenerator({\n  entry: path.resolve(__dirname, 'src/index.js'),\n  output: path.resolve(__dirname, 'dist/bundle.js'),\n  minify: false\n}).then(() => {\n  console.log('Bundle created successfully');\n}).catch(err => {\n  console.error('Error:', err);\n});","lang":"javascript","description":"Shows how to require and invoke vendorGenerator to bundle src/index.js into dist/bundle.js, with minification disabled."},"warnings":[{"fix":"Use a newer version of Node.js >=12, but test for compatibility as dependencies may be outdated.","message":"Node.js version requirement is >=8, which includes unsupported versions (8 and 10) that have reached end-of-life. May break on Node 16+.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Consider migrating to actively maintained bundlers like Webpack, Rollup, or esbuild.","message":"No new releases since 2019; package likely unmaintained.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure all input files use CommonJS syntax, or transpile ES modules to CommonJS before bundling.","message":"The package does not support ES modules (import/export) natively; only CommonJS require is supported.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use const vendorGenerator = require('vendor-generator');","cause":"The package was imported using ES modules (import) instead of CommonJS require.","error":"TypeError: vendorGenerator is not a function"},{"fix":"Run npm install vendor-generator --save-dev","cause":"The package is not installed in node_modules.","error":"Cannot find module 'vendor-generator'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}