Skip to content

Commit 48ff74b

Browse files
committed
Text update.
1 parent 150e443 commit 48ff74b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ See the [Creating a Custom Phaser Build](http://phaser.io/tutorials/creating-cus
199199

200200
### Browserify / CJS
201201

202-
Phaser was never written to be modular. Everything exists under one single namespace, and you cannot include 'parts' of it into your builds. It expects 3 global vars to exist in order to work properly: `Phaser`, `PIXI` and `p2`. In order to 'require' Phaser from Browserify you'll need to use the following approach:
202+
Phaser was never written to be modular. Everything exists under one single global namespace, and you cannot `require` selected parts of it into your builds. It expects 3 global vars to exist in order to work properly: `Phaser`, `PIXI` and `p2`. The following is one way of doing this:
203203

204204
```
205205
window.PIXI = require('phaser/build/custom/pixi')
@@ -209,7 +209,7 @@ window.Phaser = require('phaser/build/custom/phaser-split')
209209

210210
If you build a custom version of Phaser (see above) it will split the 3 core libs out into their own files, allowing you to require them as above.
211211

212-
We appreciate this is just a band-aid and not a proper use of modules, but please understand it was never built to be used this way. You're trying to fit a square peg in a round browserify-shaped hole, so compromises have to be made. Please don't open GitHub issues about it, as we've no intention of changing Phaser at this stage of its life. Proper module based development is being undertaken in Lazer.
212+
We appreciate this is just a band-aid and not a proper use of modules, but please understand it was never built to be used this way. You're trying to fit a square peg in a round browserify-shaped hole, so compromises have to be made. Please don't open GitHub issues about it. We've no intention of changing Phaser at this stage of its life. Full module based development is being undertaken in Lazer.
213213

214214
### Webpack
215215

0 commit comments

Comments
 (0)