-
-
Save anonymous/8cc442d3ee263efa3203 to your computer and use it in GitHub Desktop.
Occasionally errors with: Module http://localhost:52404/AppTS/Main.js interpreted as amd module format, but called System.register.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
baseURL: "/", | |
defaultJSExtensions: true, | |
transpiler: "typescript", | |
paths: { | |
"*": "AppTS/*", | |
"npm:*": "jspm_packages/npm/*" | |
}, | |
meta: { '/AppTS/*': { scriptLoad: true } }, | |
map: { | |
"typescript": "npm:typescript@1.7.3" | |
}, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.register([], function(exports_1) { | |
var WorldSelection; | |
return { | |
setters:[], | |
execute: function() { | |
WorldSelection = (function () { | |
function WorldSelection() { | |
alert("Typescript works with systemjs"); | |
} | |
WorldSelection.prototype.activate = function () { | |
alert("Typescript works with systemjs in activate"); | |
}; | |
return WorldSelection; | |
})(); | |
exports_1("WorldSelection", WorldSelection); | |
} | |
} | |
}); | |
//# sourceMappingURL=Main.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class WorldSelection | |
{ | |
constructor() | |
{ | |
alert("Typescript works with systemjs"); | |
} | |
activate() | |
{ | |
alert("Typescript works with systemjs in activate"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment