Registry / devops / ember-rollup

ember-rollup

JSON →
library3.0.0jsnpmunverified

Ember addon that uses Rollup to bundle ES6/ES2015 runtime dependencies for ember-cli addons. Version 3.0.0 is the latest stable release. Developed primarily by asakusuma, it wraps addon exports so that ES module dependencies can be imported under a namespaced path (e.g., 'my-addon/my-module'). Supports custom Rollup entry points and optional opt-out of namespacing for shared modules. Handles Babel transpilation automatically. Suitable for ember-cli addon authors needing to bundle modern JavaScript dependencies. The package is a utility function, not a typical Ember addon, and requires Node 10+.

npm install ember-rollup
INSTALL
IMPORT
SIG · EMBER-ROLLUP
E
ember-rollup
devopsjavascriptv3.0.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
const emberRollup = require('ember-rollup');
import emberRollup from 'ember-rollup'; (will work only if package is ESM-compatible, but it's CJS)
Package is CommonJS; use require(). Default export is a function.
default with ES modules
import emberRollup from 'ember-rollup'; // if project supports CJS interop
Some bundlers/TypeScript may allow default import, but the correct CJS pattern is require().
require
const emberRollup = require('ember-rollup');
const { emberRollup } = require('ember-rollup'); (there is no named export)
The package exports a single function as the module.exports.

Shows basic usage of ember-rollup to wrap an addon's index.js with runtime dependencies.

// my-addon/index.js const emberRollup = require('ember-rollup'); const runtimeDependencies = ['my-module', 'rsvp']; module.exports = emberRollup(runtimeDependencies, { name: 'my-addon', isDevelopingAddon: () => true, options: {} }); // my-addon/app/my-thing.js import myModule from 'my-addon/my-module'; import RSVP from 'my-addon/rsvp';
Debug
Known issues
breakingVersion 3.0.0 drops support for Node <10 and may have different rollup config expectations.
fix
Upgrade Node to 10+ and ensure rollup.config.js is not relied upon; ember-rollup handles rollup internally.
affects: >=3.0.0
deprecatedThe `jsnext:main` field is deprecated in favor of `module` in package.json. ember-rollup checks `module` first.
fix
If using a package with only `jsnext:main`, it still works but consider migrating to `module`.
affects: *
gotchaIf a dependency does not provide `jsnext:main` or `module`, ember-rollup falls back to `main` and treats it as CommonJS. This may break tree-shaking.
fix
Use `rollupEntry` option to manually specify an ES module entry point.
affects: *
gotchaNamespacing is on by default; if two addons bundle the same module, they get separate copies unless namespaced is false.
fix
Set `namespaced: false` on the dependency config to force a single version in the app.
affects: *
Errors
Common errors & fixes
Cannot find module 'ember-rollup'
ember-rollup is not installed or not in node_modules.
fix
Run `npm install --save ember-rollup` or add it to `dependencies` in package.json.
RollupError: Could not resolve entry module
The `rollupEntry` path does not exist or package.json missing `jsnext:main`/`module`.
fix
Verify the package has an ES module entry or set `rollupEntry` to a valid path.
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies
rolluprequiredCore bundler used to roll up ES modules
Agent activity
4 hits · last 30 days
node
4
Resources
ember-rollup — npm install ember-rollup · libregistry