mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 06:00:41 +00:00
Merge pull request #6723 from samme/feature/renderer-custom-builds
Exclude the renderers by feature flag
This commit is contained in:
commit
f258e11cb7
1 changed files with 11 additions and 3 deletions
|
@ -14,9 +14,17 @@
|
|||
|
||||
module.exports = {
|
||||
|
||||
Canvas: require('./canvas'),
|
||||
Events: require('./events'),
|
||||
Snapshot: require('./snapshot'),
|
||||
WebGL: require('./webgl')
|
||||
Snapshot: require('./snapshot')
|
||||
|
||||
};
|
||||
|
||||
if (typeof CANVAS_RENDERER)
|
||||
{
|
||||
module.exports.Canvas = require('./canvas');
|
||||
}
|
||||
|
||||
if (typeof WEBGL_RENDERER)
|
||||
{
|
||||
module.exports.WebGL = require('./webgl');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue