diff --git a/lib/torque/index.js b/lib/torque/index.js index 7b68f96..ec7805f 100644 --- a/lib/torque/index.js +++ b/lib/torque/index.js @@ -1,4 +1,6 @@ -module.exports = { - cartocss_reference: require('./cartocss_reference').torque['torque-reference'], -}; +if (typeof module !== "undefined") { + module.exports = { + cartocss_reference: require('./cartocss_reference').torque['torque-reference'], + }; +}