{"id":18169,"library":"bobril-build","title":"Bobril Build Core","description":"bobril-build is the build tool for Bobril applications, providing npm-driven download, compilation, bundling, and testing. Current stable version is 5.4.0, released with locale quote metadata generation. It is actively maintained with a release cadence of minor versions every few months. Key differentiators include deep TypeScript 5.x/6.x support, headless browser integration for tests, and a caching system optimized for large Bobril projects. It is the only build system designed specifically for the Bobril framework.","status":"active","version":"2.4.0","language":"javascript","source_language":"en","source_url":"https://github.com/bobril/bbcore","tags":["javascript"],"install":[{"cmd":"npm install bobril-build","lang":"bash","label":"npm"},{"cmd":"yarn add bobril-build","lang":"bash","label":"yarn"},{"cmd":"pnpm add bobril-build","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only since v5.","wrong":"const build = require('bobril-build')","symbol":"build","correct":"import { build } from 'bobril-build'"},{"note":"ESM-only since v5.","wrong":"const { test } = require('bobril-build')","symbol":"test","correct":"import { test } from 'bobril-build'"},{"note":"ESM-only since v5.","wrong":"const run = require('bobril-build').run","symbol":"run","correct":"import { run } from 'bobril-build'"}],"quickstart":{"code":"import { build } from 'bobril-build';\nawait build({\n  root: './src',\n  outputDir: './dist',\n  entry: 'index.tsx',\n  minify: true\n});","lang":"typescript","description":"Shows how to programmatically invoke a Bobril build with options."},"warnings":[{"fix":"Use import statements or update to ESM-compatible Node.js.","message":"ESM-only since v5.0.0: require() will throw.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Upgrade to v5.2.0 or later.","message":"TypeScript 6 compatibility is fixed in v5.2.0, older versions may fail.","severity":"deprecated","affected_versions":"<5.2.0"},{"fix":"Incremental builds may re-transpile; no user action needed but expect one-time slower build.","message":"Cache table version bump in v5.3.2 invalidates old transpilation caches.","severity":"breaking","affected_versions":">=5.3.2 <5.4.0"},{"fix":"Pass --verbose flag or set log level to debug.","message":"Headless browser logs only print in verbose mode (v5.1.2+); without --verbose, failures may be silent.","severity":"gotcha","affected_versions":">=5.1.2"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Switch to import syntax or use dynamic import().","cause":"Using require() on an ESM-only version of bobril-build (v5+).","error":"ERR_REQUIRE_ESM: require() of ES Module not supported"},{"fix":"Update to bobril-build v5.3.1 or later, or adjust TypeScript module settings.","cause":"Using old TypeScript interop with bobril-build v5.3.0 or older, after TS 6.0.2 changes.","error":"TypeScript compiler error: 'Namespace' is not assignable to type 'typeof import'"},{"fix":"Upgrade to bobril-build v5.2.1 or later.","cause":"Concurrent refresh operations in versions before v5.2.1.","error":"Error: DiskCache child lookup race condition"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}