{"id":25841,"library":"kompiler","title":"kompiler","description":"A framework-agnostic compiler/transpiler that bundles Babel, Rollup, and Node script management into a single watch-driven workflow. Current stable version is 7.0.170. Released irregularly as a personal tool. Unlike full-featured bundlers, it focuses on rapid development with built-in static server, automatic restarts, and path mappings. Configuration is done via package.json under the 'kompiler' key. Supports custom Babel presets, multiple builds, Node script watching, and HTTP file auto-updates. Primarily intended for the author and friends, with minimal documentation and breaking changes between versions.","status":"maintenance","version":"7.0.170","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install kompiler","lang":"bash","label":"npm"},{"cmd":"yarn add kompiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add kompiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Babel is used as the transpiler core for all builds and node scripts.","package":"babel","optional":false},{"reason":"Rollup is used for bundling builds defined in the configuration.","package":"rollup","optional":false}],"imports":[{"note":"kompiler is a CLI tool, not a library. Install globally or use npx. No JS API is exposed.","wrong":"Attempting `const kompiler = require('kompiler')` will not work as expected.","symbol":"default","correct":"No exports to import; configured via package.json \"kompiler\" key."},{"note":"CLI reads package.json configuration automatically.","wrong":"Running `kompiler` without installation or `require('kompiler')`.","symbol":"CLI usage","correct":"npx kompiler"}],"quickstart":{"code":"// In package.json:\n{\n  \"kompiler\": {\n    \"builds\": [\n      {\n        \"input\": [\"src/index.js\"],\n        \"output\": \"dist/bundle.js\",\n        \"minified\": true\n      }\n    ]\n  }\n}\n// Then run:\n// npx kompiler","lang":"javascript","description":"Quickstart showing minimal package.json configuration to transpile a single file and run the build."},"warnings":[{"fix":"Update package.json: rename key from 'compiler' to 'kompiler', and convert single watch paths to arrays.","message":"In version 7.0.0+, configuration schema changed from 'compiler' to 'kompiler' key in package.json. Watch paths are now arrays instead of strings.","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Remove 'autoupdates' from configuration; use external tools like curl or wget instead.","message":"The 'autoupdates' feature is deprecated and may be removed in a future release.","severity":"deprecated","affected_versions":"<7.0.170"},{"fix":"Ensure that when input is a directory, output is also a directory (e.g., 'dist/').","message":"If 'input' is a folder, output must be a folder as well; otherwise build fails silently.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'express: true' in build config to enable the Express server with full HTTP support.","message":"The static server does not support HTTP range requests (206 Partial Content). This affects video/audio streaming on browsers.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install globally: npm install -g kompiler, or use npx kompiler.","cause":"Global installation missing or local node_modules not present.","error":"Cannot find module 'kompiler'"},{"fix":"Check configuration adheres to the current version schema. In v7, 'watch' inside 'builds' must be an array of file paths.","cause":"Configuration key name mismatch or version-specific changes.","error":"Unknown option 'watch' in kompiler config"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}