Droppe / Loader

Loader: a very simple loader to require() based on glob pattern matching.
5 stars 3 forks source link

Fails silently in strict mode #8

Open sandwichsudo opened 8 years ago

sandwichsudo commented 8 years ago

Hi, I must be doing something wrong because this just seems to fail silently:

loader.load('../js-test/*.js', {strict:true}, function (exports, filename) {
  console.log('Loaded ' + filename);

}).then(function () {
  // Do Something Nice 
  console.log('Done something');
});

With strict:true 'Done something' is not logged, so it must not be finding the files, but how do I show the error please? .catch() on the end isn't a function, so must not be returning the promise.