Break out dagre-d3 dependency

This commit is contained in:
Björn Weström 2015-01-11 16:15:19 +01:00
parent d9f8ef6d57
commit 1b76160a7d
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
/* global window */
var dagreD3;
if (require) {
try {
dagreD3 = require("dagre-d3");
} catch (e) {}
}
if (!dagreD3) {
dagreD3 = window.dagreD3;
}
module.exports = dagreD3;