Skip to content

Commit

Permalink
Fix for requirejs via phaser
Browse files Browse the repository at this point in the history
Fixed compatibility with phaser and requirejs. Seems that phaser uses p2 globally, and when included with requirejs, it fails to pickup the global p2.
  • Loading branch information
dgoemans committed Apr 6, 2015
1 parent 8f0907d commit ced0558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = function(grunt) {
dest : 'build/p2.js',
options:{
bundleOptions : {
standalone : "p2"
standalone : "p2",
insertGlobals: true
}
}
}
Expand Down

0 comments on commit ced0558

Please sign in to comment.