{"id":26796,"library":"bayrell-bundler-nodejs","title":"Bayrell Bundler for Node.js","description":"Bayrell Bundler for Node.js (v0.10.11) is a module bundler designed for the Bayrell ecosystem, focusing on packaging JavaScript/TypeScript code into optimized bundles. It is part of the Bayrell project and primarily supports Node.js environments. The package has a low release cadence (last release Oct 2020) and limited documentation. Compared to mainstream bundlers like Webpack or Rollup, it is specialized for Bayrell-specific workflows and may not be suitable for general-purpose bundling.","status":"maintenance","version":"0.10.11","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install bayrell-bundler-nodejs","lang":"bash","label":"npm"},{"cmd":"yarn add bayrell-bundler-nodejs","lang":"bash","label":"yarn"},{"cmd":"pnpm add bayrell-bundler-nodejs","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only since v0.10.0; CJS require is unsupported.","wrong":"const BayrellBundler = require('bayrell-bundler-nodejs')","symbol":"default","correct":"import BayrellBundler from 'bayrell-bundler-nodejs'"},{"note":"Named export; type import available with 'import type { BundleConfig } ...'.","wrong":"const { BundleConfig } = require('bayrell-bundler-nodejs')","symbol":"BundleConfig","correct":"import { BundleConfig } from 'bayrell-bundler-nodejs'"},{"note":"Named export, not default. Common mistaking it as default export.","wrong":"import bundler from 'bayrell-bundler-nodejs'","symbol":"bundler","correct":"import { bundler } from 'bayrell-bundler-nodejs'"}],"quickstart":{"code":"import BayrellBundler, { BundleConfig } from 'bayrell-bundler-nodejs';\n\nconst config = new BundleConfig();\nconfig.entry = './src/index.js';\nconfig.output = './dist/bundle.js';\n\nconst bundler = new BayrellBundler(config);\nbundler.bundle().then(() => console.log('Bundled successfully!')).catch(err => console.error(err));","lang":"typescript","description":"Demonstrates creating a bundle config and running the bundler with an entry point and output path."},"warnings":[{"fix":"Use ES module imports (import/export) instead of require().","message":"Version 0.10.0 dropped CommonJS support; ESM-only imports required.","severity":"breaking","affected_versions":">=0.10.0"},{"fix":"Refer to source code or Bayrell project documentation for configuration details.","message":"The package has minimal documentation; configuration options are not fully documented.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider migrating to an actively maintained bundler like Webpack or Rollup.","message":"Bayrell Bundler is in maintenance mode; no new features planned.","severity":"deprecated","affected_versions":">=0.10.11"},{"fix":"Test bundle output for browser compatibility if targeting browsers.","message":"BundleConfig class may not support all web/browser features; designed primarily for Node.js modules.","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 'import BayrellBundler from 'bayrell-bundler-nodejs''","cause":"Improper import of default export using wrong syntax (e.g., require).","error":"TypeError: bayrell_bundler_nodejs_1.default is not a function"},{"fix":"Run 'npm install bayrell-bundler-nodejs'","cause":"Package not installed or missing from dependencies.","error":"Module not found: Error: Can't resolve 'bayrell-bundler-nodejs'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}