
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
ember-rollup
Advanced tools
Use rollup to add runtime dependencies to an ember-cli addon.
npm i --save ember-rollup
ember-rollup is not an addon, but rather a function that takes just two arguments:
dependencies in package.json.index.jsSimply wrap the exports of your app/addon index.js with the function, and suddenly, ES6/2015 dependencies in your ember app! ember-rollup even handles babel for you. Modules are namespaced based on the addon name.
ember-rollup looks for a jsnext:main or module in package.json of imported modules. If not provided, it will fallback to main and assume a normal CommonJS module. If main is not provided, it will assume index.js.
//my-addon/index.js
const emberRollup = require('ember-rollup');
const runtimeDependencies = ['my-module', 'rsvp'];
module.exports = emberRollup(runtimeDependencies, {
name: 'my-addon',
...
});
//my-addon/app/my-thing.js
import myModule from 'my-addon/my-module';
import RSVP from 'my-addon/rsvp';
Some packages don't specify jsnext:main or module in their package.json even though
a module exists. You can manually point rollup to the module entry point file path using rollupEntry.
//my-addon/index.js
const emberRollup = require('ember-rollup');
const runtimeDependencies = [{
name: '@reactivex/rxjs',
namespaced: false,
rollupEntry: 'dist/esm5_for_rollup/index.js'
}];
module.exports = emberRollup(runtimeDependencies, {
name: 'my-addon',
...
});
//my-addon/app/my-thing.js
import { Observable } from 'rxjs';
By default, module names are namespaced based on the addon. The reason being, an app might use two different addons that require two different versions of the same module. If you would rather force the app to only include one version of any given module, you can turn off namespacing.
//my-addon/index.js
const emberRollup = require('ember-rollup');
const runtimeDependencies = [{
name: 'my-module',
namespaced: false
}, 'rsvp'];
module.exports = emberRollup(runtimeDependencies, {
name: 'my-addon',
...
});
//my-addon/app/my-thing.js
import myModule from 'my-module';
import RSVP from 'my-addon/rsvp';
FAQs
Use rollup to add runtime dependencies to an ember-cli addon.
The npm package ember-rollup receives a total of 48 weekly downloads. As such, ember-rollup popularity was classified as not popular.
We found that ember-rollup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.