Exclude the renderers

This commit is contained in:
samme 2023-12-01 10:23:23 -08:00
parent 47d393ac29
commit 3b2ed4a4fe

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