Reverted to es5 output, because of phantomjs
This commit is contained in:
parent
095cf9e491
commit
82d467284b
|
@ -1,24 +1,25 @@
|
||||||
/// <reference path="lib/phaser.d.ts"/>
|
/// <reference path="lib/phaser.d.ts"/>
|
||||||
|
|
||||||
|
declare var global: any;
|
||||||
|
declare var module: any;
|
||||||
|
|
||||||
if (typeof window != "undefined") {
|
if (typeof window != "undefined") {
|
||||||
// If jasmine is not present, ignore describe
|
// If jasmine is not present, ignore describe
|
||||||
(<any>window).describe = (<any>window).describe || function () { };
|
(<any>window).describe = (<any>window).describe || function () { };
|
||||||
}
|
} else {
|
||||||
|
if (typeof global != "undefined") {
|
||||||
declare var global: any;
|
// In node, does not extend Phaser classes
|
||||||
if (typeof global != "undefined") {
|
var handler = {
|
||||||
// In node, does not extend Phaser classes
|
get(target: any, name: any) {
|
||||||
var handler = {
|
return function () { }
|
||||||
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") {
|
||||||
if (typeof module != "undefined") {
|
module.exports = { TK };
|
||||||
module.exports = { TK };
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module TK.SpaceTac {
|
module TK.SpaceTac {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"dom",
|
"dom",
|
||||||
"es6"
|
"es6"
|
||||||
],
|
],
|
||||||
"target": "es6"
|
"target": "es5"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.ts"
|
"src/**/*.ts"
|
||||||
|
|
Loading…
Reference in a new issue