Skip to content

Instantly share code, notes, and snippets.

/Main.js Secret

Created December 13, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8cc442d3ee263efa3203 to your computer and use it in GitHub Desktop.
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.
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "typescript",
paths: {
"*": "AppTS/*",
"npm:*": "jspm_packages/npm/*"
},
meta: { '/AppTS/*': { scriptLoad: true } },
map: {
"typescript": "npm:typescript@1.7.3"
},
});
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
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