Skip to content

Commit

Permalink
Avoid bizarre error in ember-cli with custom treeForVendor while deve…
Browse files Browse the repository at this point in the history
…loping addon.
  • Loading branch information
rwjblue committed Aug 2, 2017
1 parent e10ab21 commit 37bdb90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ember-cli-build.js
Expand Up @@ -5,7 +5,14 @@ const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
// Add options here
trees: {
// this is dumb, but there is a bug in lib/broccoli/ember-addon.js
// which makes the `vendor/` tree used _twice_ during local development
// of the addon. once for the dummy app (which isn't getting our custom
// treeForVendor treatment) and once for the actual addon which is transpiled
// unfortunately, the dummy app's raw/untranspiled version wins
vendor: null
}
});

/*
Expand Down

0 comments on commit 37bdb90

Please sign in to comment.