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

Function processedAddonJsFiles

lib/models/addon.js:1242–1261  ·  view source on GitHub ↗

Returns a tree with all javascript for this addon. @private @method processedAddonJsFiles @param {Tree} the tree to preprocess @return {Tree} Processed javascript file tree

(inputTree)

Source from the content-addressed store, hash-verified

1240 @return {Tree} Processed javascript file tree
1241 */
1242 processedAddonJsFiles(inputTree) {
1243 let preprocessedAddonJS = this._addonPreprocessTree('js', inputTree);
1244
1245 let processedAddonJS = this.preprocessJs(preprocessedAddonJS, '/', this.name, {
1246 annotation: `processedAddonJsFiles(${this.name})`,
1247 registry: this.registry,
1248 treeType: 'addon',
1249 });
1250
1251 if (registryHasPreprocessor(this.registry, 'js')) {
1252 return this._addonPostprocessTree('js', processedAddonJS);
1253 }
1254
1255 throw new SilentError(
1256 `Addon files were detected in \`${this._treePathFor('addon')}\`, but no JavaScript ` +
1257 `preprocessor was found for \`${this.name}\`. Please make sure to add a preprocessor ` +
1258 '(most likely `ember-cli-babel`) to `dependencies` (NOT `devDependencies`) in ' +
1259 `\`${this.name}\`'s \`package.json\`.`
1260 );
1261 },
1262
1263 /**
1264 Returns the module name for this addon.

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…