{"id":21218,"library":"es-dev-server-rollup","title":"es-dev-server-rollup","description":"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.","status":"deprecated","version":"0.0.8","language":"javascript","source_language":"en","source_url":"https://github.com/LarsDenBakker/es-dev-server-rollup","tags":["javascript","server","rollup","plugin","es-dev-server"],"install":[{"cmd":"npm install es-dev-server-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add es-dev-server-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add es-dev-server-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency: this package only works as a plugin for the es-dev-server development server","package":"es-dev-server","optional":false}],"imports":[{"note":"The package exports a single named function; no default export.","wrong":"const wrapRollupPlugin = require('es-dev-server-rollup');","symbol":"wrapRollupPlugin","correct":"import { wrapRollupPlugin } from 'es-dev-server-rollup';"}],"quickstart":{"code":"const replace = require('@rollup/plugin-replace');\nconst { wrapRollupPlugin } = require('es-dev-server-rollup');\n\nmodule.exports = {\n  plugins: [\n    wrapRollupPlugin(\n      replace({ include: ['src/**/*.js'], __environment__: '\"development\"' })\n    ),\n  ],\n};","lang":"javascript","description":"Shows how to wrap a Rollup plugin (replace) and add it to es-dev-server configuration."},"warnings":[{"fix":"npm uninstall es-dev-server-rollup && npm install --save-dev @web/dev-server-rollup","message":"Package is experimental and unmaintained since 2020. Use @web/dev-server-rollup instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Check if the Rollup plugin uses unsupported hooks; wrap only supported ones.","message":"Only a subset of Rollup hooks (options, buildStart, resolveId, load, transform) are supported. Plugins using other hooks (e.g., generateBundle) will silently fail.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Add a resolveMimeType plugin before wrapRollupPlugin as shown in the documentation.","message":"Non-standard file types (e.g., .json) require explicit MIME type resolution to 'js', otherwise es-dev-server may serve them incorrectly.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use a different plugin that only uses supported hooks (options, buildStart, resolveId, load, transform).","cause":"The Rollup plugin uses a hook that is not called by es-dev-server.","error":"rollup plugin hook not supported: generateBundle"},{"fix":"Run: npm install --save-dev es-dev-server-rollup","cause":"The package is not installed.","error":"Cannot find module 'es-dev-server-rollup'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}