Skip to content
This repository was archived by the owner on Dec 15, 2019. It is now read-only.

Conversation

@konsumer
Copy link

I am using browserify, and I use var PIXI = require('pixi.js') in any file I need it. This code keeps everything the same, but allows me to not have to inject a PIXI global in the scope.

@wellcaffeinated
Copy link
Owner

Excellent! But would that make more sense inside the factory function?

@konsumer
Copy link
Author

Both work. This sticks with the spirit of "PIXI is already in my namespace" but I can put it in the factory, too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants