{"id":18199,"library":"cep-bundler-core","title":"CEP Bundler Core","description":"Core functionality for building bundler extensions to compile Adobe CEP (Common Extensibility Platform) extensions. Version 0.3.0 provides a single compile() function that generates manifest.xml, dev.html, node_modules folder, and optional .debug file. Supports environment-specific configurations via package.json or environment variables (CEP_NAME, CEP_ID, CEP_HOSTS). Key differentiator: it's a low-level core for custom bundler plugins, not a full build tool like cep-bundler-webpack. No notable release cadence; last release appears static.","status":"active","version":"0.3.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","Adobe","CEP","ExtendScript","TypeScript","Bundler","Extension","Plugin"],"install":[{"cmd":"npm install cep-bundler-core","lang":"bash","label":"npm"},{"cmd":"yarn add cep-bundler-core","lang":"bash","label":"yarn"},{"cmd":"pnpm add cep-bundler-core","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is CommonJS-only. ESM imports will fail.","wrong":"import { compile } from 'cep-bundler-core'","symbol":"compile","correct":"const { compile } = require('cep-bundler-core')"},{"note":"No default export; module exports an object with compile function.","wrong":"import core from 'cep-bundler-core'","symbol":"default","correct":"const core = require('cep-bundler-core')"},{"note":"Module itself is not callable; must use .compile() method.","wrong":"core({ out: '/path/to/dist' })","symbol":"compile options","correct":"core.compile({ out: '/path/to/dist', isDev: false })"}],"quickstart":{"code":"const { compile } = require('cep-bundler-core');\n\ncompile({\n  out: '/path/to/dist',\n  isDev: true,\n  env: process.env.NODE_ENV ?? 'development',\n  root: '/path/to/project',\n  htmlFilename: 'index.html',\n  pkg: require('./package.json')\n});","lang":"javascript","description":"Shows required `out` field, optional `isDev` toggling, and environment-based configuration."},"warnings":[{"fix":"Use `require('cep-bundler-core')` instead of `import`.","message":"CommonJS-only module; using ES `import` will throw a SyntaxError.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure `out` is a writable directory path.","message":"The `out` option must point to a directory where write permissions exist; otherwise compile fails silently.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Set `NODE_ENV` before compile, or pass `env` explicitly.","message":"Environment variable `NODE_ENV` is not set automatically; using `env` without setting it may default incorrectly.","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 `core.compile(...)` or destructure `{ compile }`.","cause":"Attempting to call the required module directly instead of using `.compile()`.","error":"TypeError: core is not a function"},{"fix":"Run `npm install cep-bundler-core` in your project root.","cause":"Package not installed or installed in a non-resolvable location.","error":"Cannot find module 'cep-bundler-core'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}