Permalink
Browse files

fix(loader): Use better detection of amd loaders

  • Loading branch information...
fragsalat committed Nov 4, 2018
1 parent 09e75c8 commit 1b98576f51a072dbc368c762158ffa11a9cd295f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/index.js
@@ -58,7 +58,7 @@ function createLoader() {
}
// AMD Module Loader Support
if (typeof host.require === 'function' && typeof host.require.version === 'string') {
if (typeof host.require === 'function' && typeof host.define === 'function' && typeof host.define.amd === 'object') {
return new Promise((resolve, reject) => host.require(['aurelia-loader-default'], m => resolve(new m.DefaultLoader()), reject));
}

0 comments on commit 1b98576

Please sign in to comment.