{"id":18452,"library":"jex-bundler","title":"jex-bundler","description":"jex-bundler is a lightweight JavaScript bundler for small to medium-sized projects, version 1.1.6. It aims to simplify the bundling process with minimal configuration. The release cadence is unknown. Differentiators include simplicity and ease of use, but it lacks advanced features like code splitting or plugin systems found in larger bundlers.","status":"active","version":"1.1.6","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install jex-bundler","lang":"bash","label":"npm"},{"cmd":"yarn add jex-bundler","lang":"bash","label":"yarn"},{"cmd":"pnpm add jex-bundler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only module; CommonJS require will fail.","wrong":"const jex = require('jex-bundler')","symbol":"default","correct":"import jex from 'jex-bundler'"},{"note":"Named export; default export does not exist.","wrong":"import bundle from 'jex-bundler'","symbol":"bundle","correct":"import { bundle } from 'jex-bundler'"},{"note":"TypeScript type export; only import type.","symbol":"JexConfig","correct":"import type { JexConfig } from 'jex-bundler'"}],"quickstart":{"code":"import { bundle } from 'jex-bundler';\nimport { join } from 'path';\n\nconst build = async () => {\n  try {\n    const result = await bundle({\n      entry: './src/index.js',\n      output: join(process.cwd(), 'dist'),\n      format: 'esm',\n    });\n    console.log('Build complete:', result.fileName);\n  } catch (error) {\n    console.error('Build failed:', error);\n  }\n};\n\nbuild();","lang":"typescript","description":"Builds a JavaScript bundle from entry to output directory using ESM format."},"warnings":[{"fix":"Use path.resolve or join with process.cwd() to provide absolute path.","message":"The bundle function expects an absolute path for the output option. Relative paths cause unexpected behavior.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pre-compile TypeScript to JavaScript before bundling.","message":"Input files must have a .mjs or .js extension; .ts files are not supported without a separate TypeScript compiler step.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Always await or .then() the promise returned by bundle().","message":"The bundle function returns a promise; failing to await it may lead to incomplete builds.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install jex-bundler' in your project root.","cause":"Module not installed or misspelled name.","error":"Error: Cannot find module 'jex-bundler'"},{"fix":"Use 'import { bundle } from 'jex-bundler''.","cause":"Importing incorrectly, e.g., default import instead of named import.","error":"TypeError: bundle is not a function"},{"fix":"Provide an absolute path using path.resolve or path.join.","cause":"Output option provided as a relative path.","error":"Error: The output path must be absolute"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}