MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / import

Function import

lib/models/addon.js:750–756  ·  view source on GitHub ↗

Imports an asset into this addon. @public @method import @param {Object|String} asset Either a path to the asset or an object with environment names and paths as key-value pairs. @param {Object} [options] Options object @param {String} [options.type] Either 'vendor' or 'tes

(asset, options)

Source from the content-addressed store, hash-verified

748 @since 2.7.0
749 */
750 import(asset, options) {
751 options = options || {};
752 options.resolveFrom = options.resolveFrom || this.root;
753
754 let app = this._findHost();
755 app.import(asset, options);
756 },
757
758 /**
759 Returns the tree for all app files

Callers

nothing calls this directly

Calls 1

importMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…