import.meta Support in SystemJS
TypeScript 3.6 supports transforming import.meta
to context.meta
when your module
target is set to system
.
// This module:
console.log(import.meta.url)
// gets turned into the following:
System.register([], function (exports, context) {
return {
setters: [],
execute: function () {
console.log(context.meta.url);
}
};
});