phaser-shim icon indicating copy to clipboard operation
phaser-shim copied to clipboard

Browserify doesn't work out of the box

Open cursedcoder opened this issue 9 years ago • 2 comments
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 avatar Apr 12 '16 01:04 cursedcoder

@cursedcoder How may I help you? :D update it to new version?

amowu avatar Apr 13 '16 14:04 amowu

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.

cursedcoder avatar Apr 18 '16 05:04 cursedcoder