diff --git a/package.json b/package.json index 831d07e..74f545e 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "mkdirp": "^0.5.1", "mocha": "^2.5.3", "parallelshell": "^2.0.0", - "pixify": "^1.0.0", + "pixify": "^1.2.0", "rimraf": "^2.5.3", "testem": "^1.8.1", "watchify": "^3.7.0" diff --git a/package.json b/package.json index 831d07e..74f545e 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "mkdirp": "^0.5.1", "mocha": "^2.5.3", "parallelshell": "^2.0.0", - "pixify": "^1.0.0", + "pixify": "^1.2.0", "rimraf": "^2.5.3", "testem": "^1.8.1", "watchify": "^3.7.0" diff --git a/src/deprecation.js b/src/deprecation.js index 0d86a06..cb78df6 100644 --- a/src/deprecation.js +++ b/src/deprecation.js @@ -1,3 +1,4 @@ +// @if DEBUG /*global console */ var core = require('./core'), mesh = require('./mesh'), @@ -553,4 +554,4 @@ warn('utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on'); return core.CanvasTinter.canUseMultiply; }; - +// @endif \ No newline at end of file diff --git a/package.json b/package.json index 831d07e..74f545e 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "mkdirp": "^0.5.1", "mocha": "^2.5.3", "parallelshell": "^2.0.0", - "pixify": "^1.0.0", + "pixify": "^1.2.0", "rimraf": "^2.5.3", "testem": "^1.8.1", "watchify": "^3.7.0" diff --git a/src/deprecation.js b/src/deprecation.js index 0d86a06..cb78df6 100644 --- a/src/deprecation.js +++ b/src/deprecation.js @@ -1,3 +1,4 @@ +// @if DEBUG /*global console */ var core = require('./core'), mesh = require('./mesh'), @@ -553,4 +554,4 @@ warn('utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on'); return core.CanvasTinter.canUseMultiply; }; - +// @endif \ No newline at end of file diff --git a/src/index.js b/src/index.js index 70a2b2d..a10440c 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,7 @@ core.mesh = require('./mesh'); core.particles = require('./particles'); core.accessibility = require('./accessibility'); -core.extract = require('./extract'); +core.extract = require('./extract'); core.prepare = require('./prepare'); // export a premade loader instance @@ -24,8 +24,10 @@ */ core.loader = new core.loaders.Loader(); +// @if DEBUG // mixin the deprecation features. Object.assign(core, require('./deprecation')); +// @endif // Always export pixi globally. global.PIXI = core;