Merge pull request #6723 from samme/feature/renderer-custom-builds

Exclude the renderers by feature flag
This commit is contained in:
Richard Davey 2024-01-31 17:24:22 +00:00 committed by GitHub
commit f258e11cb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
}