diff --git a/platform/framework/src/resolve/ExtensionResolver.js b/platform/framework/src/resolve/ExtensionResolver.js index e4c2710c0f..98e8443a03 100644 --- a/platform/framework/src/resolve/ExtensionResolver.js +++ b/platform/framework/src/resolve/ExtensionResolver.js @@ -61,8 +61,10 @@ define( $log = this.$log; function loadImplementation(extension) { - var implPath = extension.getImplementationPath(), - implPromise = loader.load(implPath), + var implValue = extension.getImplementationPath(), + implPromise = (typeof implValue === 'string') ? + loader.load(implValue) : + Promise.resolve(implValue), definition = extension.getDefinition(); // Wrap a constructor function (to avoid modifying the original) @@ -120,7 +122,7 @@ define( // Log that loading has begun $log.info([ "Loading implementation ", - implPath, + implValue, " for extension ", extension.getLogName() ].join(""));