Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion markdown/docs/addon-author-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ Node compatible, you can wrap it with a check as below in an addon:

```js
var map = require('broccoli-stew').map;
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');

treeForVendor(defaultTree) {
var browserVendorLib = new Funnel(<path to your third party lib>);
Expand All @@ -206,7 +208,7 @@ treeForVendor(defaultTree) {
return new mergeTrees([defaultTree, browserVendorLib]);
}

included() {
included(app) {
// this file will be loaded in FastBoot but will not be eval'd
app.import('vendor/<third party lib file name>.js');
}
Expand Down