UNPKG

460 BJavaScriptView Raw
1/* jshint node: true */
2'use strict';
3
4var path = require('path');
5var mergeTrees = require('broccoli-merge-trees');
6
7module.exports = {
8 name: 'lodash',
9
10 treeForAddon: function(tree) {
11 var lodashPath = path.dirname(require.resolve('lodash-es/lodash.js'));
12 var lodashTree = this.treeGenerator(lodashPath);
13
14 var trees = mergeTrees([lodashTree, tree], {
15 overwrite: true
16 });
17
18 return this._super.treeForAddon.call(this, trees);
19 }
20};