{"id":27922,"library":"lib-bundler","title":"lib-bundler","description":"lib-bundler is a code bundler for ES6 JavaScript libraries. Version 0.0.2 is very early stage with minimal documentation and no active maintenance. It bundles CommonJS and UMD outputs (common, full, min, min.gz, map). Compared to Rollup or esbuild, it lacks modern features, has no updates since initial release, and is essentially abandoned. Use only for understanding early bundler patterns.","status":"abandoned","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/miaowing/libbuilder","tags":["javascript","lib_builder","lib_compiler","builder","bundler"],"install":[{"cmd":"npm install lib-bundler","lang":"bash","label":"npm"},{"cmd":"yarn add lib-bundler","lang":"bash","label":"yarn"},{"cmd":"pnpm add lib-bundler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package provides only CommonJS require-based API as of v0.0.2.","wrong":"import Bundler from 'lib-bundler';","symbol":"Bundler","correct":"const Bundler = require('lib-bundler');"},{"note":"Named export is also available, but default export is more common.","wrong":null,"symbol":"Bundler","correct":"const { Bundler } = require('lib-bundler');"},{"note":"This package does not use .default; the module exports directamente the constructor.","wrong":null,"symbol":"Bundler","correct":"const Bundler = require('lib-bundler').default;"}],"quickstart":{"code":"npm install lib-bundler --save-dev\n\nvar Bundler = require('lib-bundler');\n\nvar bundler = new Bundler({\n    project: \"test\",\n    moduleName: \"test\",\n    author: \"author\",\n    version: \"1.0.0\",\n    entry: \"./src/index.js\",\n    output: \"./dist\"\n});\n\nbundler.bundled()\n.then(function() {\n    console.log('Build complete');\n})\n.catch(function(err) {\n    console.error('Build failed:', err);\n});","lang":"javascript","description":"Initialize bundler with configuration and run build, producing multiple output formats in ./dist."},"warnings":[{"fix":"Migrate to a maintained bundler (e.g., Rollup: npm install rollup --save-dev).","message":"Package is no longer maintained; last update in 2016. Use modern bundlers like Rollup or esbuild.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Always provide complete configuration object as shown in the documentation.","message":"Options object requires all fields (project, moduleName, author, version, entry, output) — no defaults.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use try-catch or promise-based API if available; consider not using this abandoned package.","message":"The bundler writes files synchronously? Actual behavior is unknown; no tests or examples show error handling.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'npm install lib-bundler --save-dev' in your project directory.","cause":"Package may not be installed; or installed globally instead of locally.","error":"Cannot find module 'lib-bundler'"},{"fix":"Use 'const Bundler = require(\"lib-bundler\");' instead.","cause":"Using ES6 import syntax (import Bundler from 'lib-bundler') which is not supported by this CommonJS-only package.","error":"TypeError: Bundler is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}