1
0
Fork 0

Reverted to es5 output, because of phantomjs

This commit is contained in:
Michaël Lemaire 2018-04-08 22:50:07 +02:00
parent 095cf9e491
commit 82d467284b
2 changed files with 15 additions and 14 deletions

View File

@ -1,24 +1,25 @@
/// <reference path="lib/phaser.d.ts"/>
declare var global: any;
declare var module: any;
if (typeof window != "undefined") {
// If jasmine is not present, ignore describe
(<any>window).describe = (<any>window).describe || function () { };
}
declare var global: any;
if (typeof global != "undefined") {
// In node, does not extend Phaser classes
var handler = {
get(target: any, name: any) {
return function () { }
} else {
if (typeof global != "undefined") {
// In node, does not extend Phaser classes
var handler = {
get(target: any, name: any) {
return function () { }
}
}
global.Phaser = new Proxy({}, handler);
}
global.Phaser = new Proxy({}, handler);
}
declare var module: any;
if (typeof module != "undefined") {
module.exports = { TK };
if (typeof module != "undefined") {
module.exports = { TK };
}
}
module TK.SpaceTac {

View File

@ -13,7 +13,7 @@
"dom",
"es6"
],
"target": "es6"
"target": "es5"
},
"include": [
"src/**/*.ts"