MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / findOwnAddonByName

Function findOwnAddonByName

lib/models/addon.js:340–342  ·  view source on GitHub ↗

* Find an addon of the current addon. * * Example: ember-data depends on ember-cli-babel and wishes to have * additional control over transpilation this method helps. * * ```js * // ember-data/index.js * treeForAddon(tree) { * let babel = this.findOwnAddonByName('ember-cli-

(name)

Source from the content-addressed store, hash-verified

338 * @method findOwnAddonByName
339 */
340 findOwnAddonByName(name) {
341 return this.addons.find((addon) => addon.name === name);
342 },
343
344 /**
345 * Check if the current addon intends to be hinted. Typically this is for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…