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