Skip to content

Commit

Permalink
Update broccoli-funnel to latest syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed May 9, 2022
1 parent 573458d commit 04609dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-env node */
'use strict';

var Funnel = require('broccoli-funnel');
var findHost = require('./lib/utils/find-host');
const funnel = require('broccoli-funnel');
const findHost = require('./lib/utils/find-host');

module.exports = {
name: 'ember-asset-loader',
Expand All @@ -14,11 +14,11 @@ module.exports = {
* @override
*/
treeForApp: function() {
var tree = this._super.treeForApp.apply(this, arguments);
var app = findHost(this);
let tree = this._super.treeForApp.apply(this, arguments);
const app = findHost(this);

if (app && app.options && app.options.assetLoader && app.options.assetLoader.noManifest) {
tree = new Funnel(tree, {
tree = funnel(tree, {
exclude: [
'config/asset-manifest.js',
'instance-initializers/load-asset-manifest.js'
Expand Down

0 comments on commit 04609dd

Please sign in to comment.