Registry / web-framework / rollup-plugin-eco

rollup-plugin-eco

JSON →
library0.1.1jsnpmunverified

A Rollup plugin that compiles Eco templates during bundling. Version 0.1.1 is the latest release; the package appears to be in early development with no recent updates. Eco is a JavaScript template engine similar to CoffeeScript. This plugin provides a simple integration for bundling Eco templates with Rollup. There are few alternative plugins; this one is minimal and directly wraps the eco compiler. No known breaking changes or security issues reported.

npm install rollup-plugin-eco
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-ECO
R
rollup-plugin-eco
web-frameworkjavascriptv0.1.1
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.

default
import eco from 'rollup-plugin-eco'
const eco = require('rollup-plugin-eco')
The plugin is ESM-only and does not provide a CommonJS export.
eco (plugin)
import eco from 'rollup-plugin-eco'; plugins: [eco()]
import { eco } from 'rollup-plugin-eco'; plugins: [eco()]
The plugin is exported as default, not a named export. Using curly braces will cause an undefined error.

Configures Rollup to use the Eco plugin, bundling .eco template files.

// rollup.config.js import eco from 'rollup-plugin-eco'; export default { input: 'src/main.js', output: { file: 'bundle.js', format: 'cjs' }, plugins: [eco()] };
Debug
Known issues
gotchaThe plugin has not been updated in several years; ensure compatibility with newer Rollup versions.
fix
Test with your Rollup version. Consider forking or using an alternative plugin if issues arise.
affects: >=0.1.1
gotchaEco template engine may have performance issues with large templates; not recommended for production.
fix
Consider using a more modern template engine like Handlebars or Nunjucks.
affects: all
Errors
Common errors & fixes
Cannot find module 'eco'
Missing dependency; eco is a peer dependency.
fix
Run: npm install eco
eco is not a function
Eco package export shape mismatch; may need specific version.
fix
Install a compatible version: npm install eco@1.0.0
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rollup-plugin-eco — npm install rollup-plugin-eco · libregistry