Registry / web-framework / es-dev-server-rollup

es-dev-server-rollup

JSON →
library0.0.8jsnpmunverified

Adapter package (v0.0.8, experimental) to reuse Rollup plugins in es-dev-server, a dev server without bundling. Wraps Rollup plugins so they work with es-dev-server's plugin system, supporting hooks like options, buildStart, resolveId, load, and transform. Unlike Rollup, it does not bundle, focusing on file-by-file transformation. Key differentiator: enables using Rollup's ecosystem of plugins (e.g., replace, json, commonjs) during development without a full build step. Requires explicit handling of non-standard file types via mime type resolution. Last published in 2020; the project has been superseded by @web/dev-server-rollup.

npm install es-dev-server-rollup
INSTALL
IMPORT
SIG · ES-DEV-SERVER-ROLL
E
es-dev-server-rollup
web-frameworkjavascriptv0.0.8
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.

wrapRollupPlugin
import { wrapRollupPlugin } from 'es-dev-server-rollup';
const wrapRollupPlugin = require('es-dev-server-rollup');
The package exports a single named function; no default export.

Shows how to wrap a Rollup plugin (replace) and add it to es-dev-server configuration.

const replace = require('@rollup/plugin-replace'); const { wrapRollupPlugin } = require('es-dev-server-rollup'); module.exports = { plugins: [ wrapRollupPlugin( replace({ include: ['src/**/*.js'], __environment__: '"development"' }) ), ], };
Debug
Known issues
deprecatedPackage is experimental and unmaintained since 2020. Use @web/dev-server-rollup instead.
fix
npm uninstall es-dev-server-rollup && npm install --save-dev @web/dev-server-rollup
affects: >=0.0.0
breakingOnly a subset of Rollup hooks (options, buildStart, resolveId, load, transform) are supported. Plugins using other hooks (e.g., generateBundle) will silently fail.
fix
Check if the Rollup plugin uses unsupported hooks; wrap only supported ones.
affects: >=0.0.0
gotchaNon-standard file types (e.g., .json) require explicit MIME type resolution to 'js', otherwise es-dev-server may serve them incorrectly.
fix
Add a resolveMimeType plugin before wrapRollupPlugin as shown in the documentation.
affects: >=0.0.0
Errors
Common errors & fixes
rollup plugin hook not supported: generateBundle
The Rollup plugin uses a hook that is not called by es-dev-server.
fix
Use a different plugin that only uses supported hooks (options, buildStart, resolveId, load, transform).
Cannot find module 'es-dev-server-rollup'
The package is not installed.
fix
Run: npm install --save-dev es-dev-server-rollup
Upgrade
Version history
0.0.8latest on npm
Audit
Dependencies
es-dev-serverrequiredpeer dependency: this package only works as a plugin for the es-dev-server development server
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
es-dev-server-rollup — npm install es-dev-server-rollup · libregistry