Tick the 'Bundle.. ' option
Apply this answer
Run your project
Check the file
deployment/data/tmp/dojo/build-report.txt and look for errors.
error(311) Missing dependency. module: SwipeContainers/widget/SwipeContainers; dependency: dojox/gesture/Base module: SwipeContainers/widget/SwipeContainers; dependency: dojox/gesture/swipe
But in the JS file, the module is registered:
I'm guessing it fails because Mendix already has a dojox and Grunt isn't taking this line into account before I import the dependencies.
This means instead of using 'dojox/..' I should be using 'WidgetName/lib/dojox/..', but then I need to change every single JS file in lib/dojox to import/require the new path of dojox. Not a great solution though. Either grunt needs to be aware of registed modules or at the very least Mendix should package the rest of dojox