Skip to content

Commit 6d74215

Browse files
committed
Make sure PIXI is available when using require for phaser builds
This is a hackish solution, and would not be needed if Phaser used require and a JS bundler like webpack
1 parent cab0f93 commit 6d74215

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/pixi/Intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
* @author Mat Groves http://matgroves.com/ @Doormat23
33
*/
44

5-
(function(){
5+
var PIXI = (function(){
66

77
var root = this;

src/pixi/Outro.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
} else {
1313
root.PIXI = PIXI;
1414
}
15+
16+
return PIXI;
1517
}).call(this);

0 commit comments

Comments
 (0)