diff --git a/extras/SVGExporter/SVGExporter.js b/extras/SVGExporter/SVGExporter.js index 2984aee78..4e711ed61 100644 --- a/extras/SVGExporter/SVGExporter.js +++ b/extras/SVGExporter/SVGExporter.js @@ -730,5 +730,10 @@ return p; }; - window.SVGExporter = SVGExporter; + var root = window || global; + if (typeof module !== 'undefined' && module.exports) { + module.exports = SVGExporter; + } else { + root.SVGExporter = SVGExporter; + } })();