{"id":21210,"library":"ember-rollup","title":"ember-rollup","description":"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+.","status":"active","version":"3.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/asakusuma/ember-rollup","tags":["javascript","ember","ember-cli","rollup"],"install":[{"cmd":"npm install ember-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add ember-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add ember-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core bundler used to roll up ES modules","package":"rollup","optional":false}],"imports":[{"note":"Package is CommonJS; use require(). Default export is a function.","wrong":"import emberRollup from 'ember-rollup'; (will work only if package is ESM-compatible, but it's CJS)","symbol":"default","correct":"const emberRollup = require('ember-rollup');"},{"note":"Some bundlers/TypeScript may allow default import, but the correct CJS pattern is require().","wrong":"","symbol":"default with ES modules","correct":"import emberRollup from 'ember-rollup'; // if project supports CJS interop"},{"note":"The package exports a single function as the module.exports.","wrong":"const { emberRollup } = require('ember-rollup'); (there is no named export)","symbol":"require","correct":"const emberRollup = require('ember-rollup');"}],"quickstart":{"code":"// my-addon/index.js\nconst emberRollup = require('ember-rollup');\nconst runtimeDependencies = ['my-module', 'rsvp'];\nmodule.exports = emberRollup(runtimeDependencies, {\n  name: 'my-addon',\n  isDevelopingAddon: () => true,\n  options: {}\n});\n// my-addon/app/my-thing.js\nimport myModule from 'my-addon/my-module';\nimport RSVP from 'my-addon/rsvp';","lang":"javascript","description":"Shows basic usage of ember-rollup to wrap an addon's index.js with runtime dependencies."},"warnings":[{"fix":"Upgrade Node to 10+ and ensure rollup.config.js is not relied upon; ember-rollup handles rollup internally.","message":"Version 3.0.0 drops support for Node <10 and may have different rollup config expectations.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"If using a package with only `jsnext:main`, it still works but consider migrating to `module`.","message":"The `jsnext:main` field is deprecated in favor of `module` in package.json. ember-rollup checks `module` first.","severity":"deprecated","affected_versions":"*"},{"fix":"Use `rollupEntry` option to manually specify an ES module entry point.","message":"If 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.","severity":"gotcha","affected_versions":"*"},{"fix":"Set `namespaced: false` on the dependency config to force a single version in the app.","message":"Namespacing is on by default; if two addons bundle the same module, they get separate copies unless namespaced is false.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `npm install --save ember-rollup` or add it to `dependencies` in package.json.","cause":"ember-rollup is not installed or not in node_modules.","error":"Cannot find module 'ember-rollup'"},{"fix":"Verify the package has an ES module entry or set `rollupEntry` to a valid path.","cause":"The `rollupEntry` path does not exist or package.json missing `jsnext:main`/`module`.","error":"RollupError: Could not resolve entry module"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}