mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +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 = {
|
module.exports = {
|
||||||
|
|
||||||
Canvas: require('./canvas'),
|
|
||||||
Events: require('./events'),
|
Events: require('./events'),
|
||||||
Snapshot: require('./snapshot'),
|
Snapshot: require('./snapshot')
|
||||||
WebGL: require('./webgl')
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (typeof CANVAS_RENDERER)
|
||||||
|
{
|
||||||
|
module.exports.Canvas = require('./canvas');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof WEBGL_RENDERER)
|
||||||
|
{
|
||||||
|
module.exports.WebGL = require('./webgl');
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue