How to load bluebird (pulled from NPM) into a Dojo project as an AMD module?
问题 I am working on a Dojo project which uses a number of NPM packages, one of them being bluebird as I need to use Promise in IE. I am looking for the best practice/recommended way to load NPM packages into my project. The following code is an example illustrating my question: require([ 'dojo/dom', 'dojo/request', 'dojo/domReady!' ], function(dom, request) { var message = dom.byId('greeting'); message.innerHTML = "Getting started"; var p1 = new Promise(function(resolve, reject) { setTimeout