Widget boilerplate define instead of require - how to load external js

The new version of the github widget boilerplate project has changed from using require to define. In the old require method you where able to load third party libs using the packages like so: require({packages: [{ name: 'fullCalendar', location: '../../widgets/MyWidget/lib', main: 'fullcalendar.min'} ]}, ['fullCalendar'], function (fullCalendar){ } ); Does anyone has an example of how to load my fullcalendar javascript file using the new define method?
1 answers

You should use the full path to your lib:

define(["MyWidget/lib/fullCalendar.min"], function (fullCalendar) {});