es-module-loader
Advanced tools
Comparing version
@@ -314,6 +314,2 @@ import { Loader, ModuleNamespace } from './loader-polyfill.js'; | ||
function traceDynamicLoad (loader, parentKey, key) { | ||
loader.loads[parentKey].dynamicDeps.push(key); | ||
} | ||
/* | ||
@@ -479,6 +475,10 @@ * Convert a CJS module.exports into a valid object for new Module: | ||
// ContextualLoader class | ||
// backwards-compatible with previous System.register context argument by exposing .id | ||
// backwards-compatible with previous System.register context argument by exposing .id, .key | ||
function ContextualLoader (loader, key) { | ||
this.loader = loader; | ||
this.key = this.id = key; | ||
this.meta = { | ||
url: key | ||
// scriptElement: null | ||
}; | ||
} | ||
@@ -490,3 +490,3 @@ /*ContextualLoader.prototype.constructor = function () { | ||
if (this.loader.trace) | ||
traceDynamicLoad(this.loader, this.key, key); | ||
this.loader.loads[this.key].dynamicDeps.push(key); | ||
return this.loader.import(key, this.key); | ||
@@ -493,0 +493,0 @@ }; |
{ | ||
"name": "es-module-loader", | ||
"description": "An ES Module Loader shim", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"homepage": "https://github.com/ModuleLoader/es-module-loader", | ||
@@ -6,0 +6,0 @@ "author": { |
8777
0.01%263928
-0.01%