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

Method require

lib/models/project.js:348–351  ·  view source on GitHub ↗

Calls `require` on a given module from the context of the project. For instance, an addon may want to require a class from the root project's version of ember-cli. @public @method require @param {String} file File path or module name @return {Object} Imported module

(file)

Source from the content-addressed store, hash-verified

346 @return {Object} Imported module
347 */
348 require(file) {
349 let path = this.resolveSync(file);
350 return require(path);
351 }
352
353 /**
354 Returns the dependencies from a package.json

Callers 3

configWithoutCacheMethod · 0.95
targetsMethod · 0.95
processAppMiddlewaresMethod · 0.45

Calls 1

resolveSyncMethod · 0.95

Tested by

no test coverage detected