Registry / web-framework / rollup-plugin-eft

rollup-plugin-eft

JSON →
library0.17.0jsnpmunverified

A Rollup plugin that transforms .eft (ef.js template) files into JavaScript modules. Current stable version 0.17.0. Released as needed, follows ef-core and eft-parser versioning. Key differentiator: enables importing ef.js templates directly in Rollup bundles, with no runtime overhead.

npm install rollup-plugin-eft
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-EFT
R
rollup-plugin-eft
web-frameworkjavascriptv0.17.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.

default
import eft from 'rollup-plugin-eft'
const eft = require('rollup-plugin-eft')
ESM-only; no CommonJS export
eft
import eft from 'rollup-plugin-eft'
import { eft } from 'rollup-plugin-eft'
Default export, not named
default (type import)
import type { Plugin } from 'rollup'
Plugin returns a Rollup plugin object; TypeScript types included from ef-core

Shows basic Rollup config with eft plugin, generating an ESM bundle from a .eft file import.

import { rollup } from 'rollup'; import eft from 'rollup-plugin-eft'; const bundle = await rollup({ input: 'main.js', plugins: [eft()] }); const { output } = await bundle.generate({ format: 'esm' }); const code = output[0].code; console.log(code);
Debug
Known issues
gotchaPlugin version 0.17.0 requires ef-core >=0.17.0 and eft-parser >=0.16.5. Incompatible versions cause runtime errors.
fix
Ensure peer dependencies are met: 'ef-core@^0.17.0', 'eft-parser@^0.16.5'.
affects: 0.17.0
gotchaThe plugin only works with Rollup (not Webpack or others). Attempting to use with other bundlers will fail.
fix
Use only with Rollup; for other bundlers, look for respective ef.js loaders.
affects: >=0.0.0
gotchaThe plugin does not support hot module replacement (HMR). File changes during dev require a full rebuild.
fix
Use with Rollup's watch mode or a separate HMR setup.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'ef-core'
Missing peer dependency ef-core.
fix
Run 'npm install ef-core@^0.17.0'
TypeError: eft is not a function
Using named import instead of default import.
fix
Change 'import { eft } from 'rollup-plugin-eft'' to 'import eft from 'rollup-plugin-eft''
Error: Unexpected token: operator (>)
eft file not processed by plugin, likely due to extension not matching.
fix
Ensure import path ends with '.eft' and plugin is included in Rollup config.
Upgrade
Version history
0.17.0latest on npm
Audit
Dependencies
ef-coreoptionalRuntime dependency for ef.js component system
eft-parseroptionalParses .eft template files into intermediate representation
Agent activity
2 hits · last 30 days
node
2
Resources
rollup-plugin-eft — npm install rollup-plugin-eft · libregistry