Registry / devops / rollup-plugin-html-entry

rollup-plugin-html-entry

JSON →
library0.3.0jsnpmunverified

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.

npm install rollup-plugin-html-entry
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-HTML
R
rollup-plugin-html-entry
devopsjavascriptv0.3.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.

htmlEntry (default)
import htmlEntry from 'rollup-plugin-html-entry';
const { htmlEntry } = require('rollup-plugin-html-entry');
Package exports a default function; named export is not available in v0.3.0.

Rollup configuration using rollup-plugin-html-entry with include/exclude/external globs, output dir for cleaned HTML, and exports:false.

// rollup.config.js import htmlEntry from 'rollup-plugin-html-entry'; export default { input: 'src/**/*.html', plugins: [ htmlEntry({ include: ['src/**/*.html'], exclude: ['src/excluded.html'], external: ['src/lazy.html'], output: 'dist', exports: false }) ], output: { dir: 'dist', format: 'esm' } };
Debug
Known issues
gotchaPackage is in maintenance mode; last update 2018. May not work with Rollup >=2.0.
fix
Consider alternatives like @web/rollup-plugin-html or custom HTML processing.
affects: >=0.48.0
gotchaHTML imports (<link rel="import">) are deprecated by Chrome and not supported in other browsers.
fix
Use ES modules or importmap instead of HTML imports.
affects: all
deprecatedRollup 0.x plugins often use deprecated APIs; plugin may not work with Rollup 1.x or 2.x.
fix
Use Rollup 0.48-0.68 or migrate to a modern rollup-html plugin.
affects: >=0.48.0
gotchaOnly <script> with text content or src attribute are processed; inline event handlers and script type="module" are ignored.
fix
Place all script code in separate files or inline within <script> tags (no module type).
affects: all
Errors
Common errors & fixes
Error: Could not resolve entry module
Input path is not a valid glob or does not match any HTML files.
fix
Check input glob pattern. Use absolute paths or relative from project root. Example: input: 'src/**/index.html'
TypeError: plugin is not a function
Incorrect import of plugin (e.g., using destructured import).
fix
Use default import: import htmlEntry from 'rollup-plugin-html-entry';
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies
rolluprequiredpeer dependency, requires rollup >=0.48.0
Agent activity
7 hits · last 30 days
node
6
Resources
rollup-plugin-html-entry — npm install rollup-plugin-html-entry · libregistry