support import() as contextual import in system module format

This commit is contained in:
guybedford
2016-10-27 13:02:29 +02:00
parent 5678e61c0f
commit 11a2f07692
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
export function lazyLoadOperation () {
return import('./x')
.then(function (x) {
x.y();
});
}

View File

@@ -0,0 +1,16 @@
System.register([], function (_export, _context) {
"use strict";
function lazyLoadOperation() {
return _context.import('./x').then(function (x) {
x.y();
});
}
_export('lazyLoadOperation', lazyLoadOperation);
return {
setters: [],
execute: function () {}
};
});