Registry / devops / vite-cep-plugin

vite-cep-plugin

JSON →
library2.2.0jsnpmunverified

A Vite plugin for bundling Adobe CEP (Common Extensibility Platform) Extension panels. Current stable version is 2.2.0, released with regular updates. It integrates Vite's fast development server and build pipeline into Adobe CEP workflows, supporting TypeScript, React, Vue, and Svelte out of the box. Unlike older workflows using Webpack or manual scripts, this plugin provides HMR, CSS modules, and optimized builds. Intended to be used with the Bolt CEP boilerplate but works standalone. It is ESM-only, requires CEP 8+ (CC 2018+), and automatically handles manifest generation and zipping for distribution.

npm install vite-cep-plugin
INSTALL
IMPORT
SIG · VITE-CEP-PLUGIN
V
vite-cep-plugin
devopsjavascriptv2.2.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import viteCEP from 'vite-cep-plugin'
const viteCEP = require('vite-cep-plugin')
ESM-only; CommonJS require will fail.
viteCEP
import viteCEP from 'vite-cep-plugin'
Default export; use any name for the plugin.
BoltCEPPlugin
import { BoltCEPPlugin } from 'vite-cep-plugin'
import BoltCEPPlugin from 'vite-cep-plugin'
Named export, only available if using the Bolt CEP boilerplate.

Configures Vite with vite-cep-plugin, setting output directory and entry point for an Adobe CEP extension.

// vite.config.js import { defineConfig } from 'vite'; import viteCEP from 'vite-cep-plugin'; export default defineConfig({ plugins: [viteCEP()], build: { outDir: 'dist/extension', rollupOptions: { input: 'src/index.html' } } });
Debug
Known issues
breakingBreaking change in v2: Plugin no longer supports CommonJS require. Use ESM imports only.
fix
Switch from require() to import statements in vite.config.js and all source files.
affects: >=2.0.0
breakingv2 drops support for Vite 1.0. Minimum Vite version is now 2.0.
fix
Update Vite to v2 or higher.
affects: >=2.0.0
deprecatedThe 'manifest' option in plugin config is deprecated in favor of 'cep' option.
fix
Use { cep: { manifest: { ... } } } instead of { manifest: { ... } }.
affects: >=2.0.0
gotchaHot Module Replacement (HMR) does not work correctly when multiple panels are open. Refresh the panel manually.
fix
No fix; design limitation. Use manual refresh when developing with multiple panels.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'vite-cep-plugin'
Package not installed or installed in wrong directory.
fix
Run 'yarn add vite-cep-plugin' or 'npm install vite-cep-plugin' in your project root.
TypeError: viteCEP is not a function
Using require() instead of import. vite-cep-plugin is ESM-only since v2.
fix
Change 'const viteCEP = require("vite-cep-plugin")' to 'import viteCEP from "vite-cep-plugin"'.
ERROR: Plugin 'vite-cep-plugin' requires Vite >=2.0
Installed vite-cep-plugin v2 with an older Vite version.
fix
Update Vite to v2 or higher: 'npm update vite'.
Upgrade
Version history
2.2.0latest on npm
Audit
Dependencies
viterequiredpeer dependency – plugin requires Vite >=2.0
ceprequiredruntime dependency for Adobe CEP APIs
archiverrequiredused for creating ZIP archives of the extension
Agent activity
4 hits · last 30 days
node
4
Resources
vite-cep-plugin — npm install vite-cep-plugin · libregistry