I'm trying to build a custom visualization component that uses d3 and nv.d3 (a chart library build on top of d3). Below is my build.js file: ({ baseUrl: '', paths: {'d3': 'd3.min','nvd3': 'nv.d3.min','SpectrumBarChart': 'SpectrumBarChart' }, name: "SpectrumBarChart", out: "SpectrumBarChart.min.js"})Insice my CVC's js file we have this format taken from the Wiki: define(['d3'], function (d3) { return function (instanceData) { //code goes here }; }); I need to pull in the nv.ds object so I can utilize the library but I'm not sure how to go about it. I think I understand how to express teh dependencies but how can I pull extra arguments into the function:? This doesn't work: define(['d3', 'nvd3'], function (d3, nvd3) { return function (instanceData) { d3.doStuff(); nvd3.doStuff(); //code goes here }; });