phaser-shim
phaser-shim copied to clipboard
Browserify doesn't work out of the box
trafficstars
In order to make it working with browserify I had to change:
https://github.com/amowu/phaser-shim/blob/master/index.js
'use strict';
global.PIXI = require('./dist/pixi');
global.Phaser = require('./dist/phaser');
module.exports = Phaser;
@cursedcoder How may I help you? :D update it to new version?
You can help me if you add this import to the global scope @amowu. But I'm not sure how it can outcome for other users with webpack etc. Check #7.