CEP Bundler Core
raw JSON → 0.3.0 verified Sat Apr 25 auth: no javascript
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.
Common errors
error TypeError: core is not a function ↓
cause Attempting to call the required module directly instead of using `.compile()`.
fix
Use
core.compile(...) or destructure { compile }. error Cannot find module 'cep-bundler-core' ↓
cause Package not installed or installed in a non-resolvable location.
fix
Run
npm install cep-bundler-core in your project root. Warnings
gotcha CommonJS-only module; using ES `import` will throw a SyntaxError. ↓
fix Use `require('cep-bundler-core')` instead of `import`.
gotcha The `out` option must point to a directory where write permissions exist; otherwise compile fails silently. ↓
fix Ensure `out` is a writable directory path.
gotcha Environment variable `NODE_ENV` is not set automatically; using `env` without setting it may default incorrectly. ↓
fix Set `NODE_ENV` before compile, or pass `env` explicitly.
Install
npm install cep-bundler-core yarn add cep-bundler-core pnpm add cep-bundler-core Imports
- compile wrong
import { compile } from 'cep-bundler-core'correctconst { compile } = require('cep-bundler-core') - default wrong
import core from 'cep-bundler-core'correctconst core = require('cep-bundler-core') - compile options wrong
core({ out: '/path/to/dist' })correctcore.compile({ out: '/path/to/dist', isDev: false })
Quickstart
const { compile } = require('cep-bundler-core');
compile({
out: '/path/to/dist',
isDev: true,
env: process.env.NODE_ENV ?? 'development',
root: '/path/to/project',
htmlFilename: 'index.html',
pkg: require('./package.json')
});