{"id":22056,"library":"rollup-plugin-html-entry","title":"rollup-plugin-html-entry","description":"Use HTML files as entry points in Rollup bundles (v0.3.0, last release 2018-04-06, maintenance mode). Traverses HTML files and HTML imports, combining all scripts found, with optional output of HTML files stripped of <script> tags. Similar to rollup-plugin-multi-entry but for HTML-based entry. Requires Rollup >=0.48.0. Not actively maintained; consider alternatives.","status":"maintenance","version":"0.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/leogr/rollup-plugin-html-entry","tags":["javascript","rollup-plugin"],"install":[{"cmd":"npm install rollup-plugin-html-entry","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-html-entry","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-html-entry","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency, requires rollup >=0.48.0","package":"rollup","optional":false}],"imports":[{"note":"Package exports a default function; named export is not available in v0.3.0.","wrong":"const { htmlEntry } = require('rollup-plugin-html-entry');","symbol":"htmlEntry (default)","correct":"import htmlEntry from 'rollup-plugin-html-entry';"}],"quickstart":{"code":"// rollup.config.js\nimport htmlEntry from 'rollup-plugin-html-entry';\n\nexport default {\n  input: 'src/**/*.html',\n  plugins: [\n    htmlEntry({\n      include: ['src/**/*.html'],\n      exclude: ['src/excluded.html'],\n      external: ['src/lazy.html'],\n      output: 'dist',\n      exports: false\n    })\n  ],\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  }\n};\n","lang":"javascript","description":"Rollup configuration using rollup-plugin-html-entry with include/exclude/external globs, output dir for cleaned HTML, and exports:false."},"warnings":[{"fix":"Consider alternatives like @web/rollup-plugin-html or custom HTML processing.","message":"Package is in maintenance mode; last update 2018. May not work with Rollup >=2.0.","severity":"gotcha","affected_versions":">=0.48.0"},{"fix":"Use ES modules or importmap instead of HTML imports.","message":"HTML imports (<link rel=\"import\">) are deprecated by Chrome and not supported in other browsers.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Rollup 0.48-0.68 or migrate to a modern rollup-html plugin.","message":"Rollup 0.x plugins often use deprecated APIs; plugin may not work with Rollup 1.x or 2.x.","severity":"deprecated","affected_versions":">=0.48.0"},{"fix":"Place all script code in separate files or inline within <script> tags (no module type).","message":"Only <script> with text content or src attribute are processed; inline event handlers and script type=\"module\" are ignored.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Check input glob pattern. Use absolute paths or relative from project root. Example: input: 'src/**/index.html'","cause":"Input path is not a valid glob or does not match any HTML files.","error":"Error: Could not resolve entry module"},{"fix":"Use default import: import htmlEntry from 'rollup-plugin-html-entry';","cause":"Incorrect import of plugin (e.g., using destructured import).","error":"TypeError: plugin is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}