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-rollupVerified import paths — ran on the pinned version, not inferred.
Shows how to wrap a Rollup plugin (replace) and add it to es-dev-server configuration.
npm uninstall es-dev-server-rollup && npm install --save-dev @web/dev-server-rollup
Check if the Rollup plugin uses unsupported hooks; wrap only supported ones.
Add a resolveMimeType plugin before wrapRollupPlugin as shown in the documentation.
Use a different plugin that only uses supported hooks (options, buildStart, resolveId, load, transform).
Run: npm install --save-dev es-dev-server-rollup