From a82d33c9b6f8ee47ce34ce76f289854f8ada394d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Demirbilek?= Date: Tue, 3 Oct 2017 11:19:13 +0300 Subject: [PATCH 1/2] added commonjs support --- extras/SVGExporter/SVGExporter.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extras/SVGExporter/SVGExporter.js b/extras/SVGExporter/SVGExporter.js index 2984aee78..9f3360e1a 100644 --- a/extras/SVGExporter/SVGExporter.js +++ b/extras/SVGExporter/SVGExporter.js @@ -730,5 +730,11 @@ return p; }; - window.SVGExporter = SVGExporter; + var root = window || global; + if (typeof module !== 'undefined' && module.exports) { + module.exports = SVGExporter; + root.SVGExporter = SVGExporter; + } else { + root.SVGExporter = SVGExporter; + } })(); From 794b5cbd7c0884db3d5b8279c1273ce6b157da1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Demirbilek?= Date: Wed, 4 Oct 2017 08:35:49 +0300 Subject: [PATCH 2/2] removed prop export --- extras/SVGExporter/SVGExporter.js | 1 - 1 file changed, 1 deletion(-) diff --git a/extras/SVGExporter/SVGExporter.js b/extras/SVGExporter/SVGExporter.js index 9f3360e1a..4e711ed61 100644 --- a/extras/SVGExporter/SVGExporter.js +++ b/extras/SVGExporter/SVGExporter.js @@ -733,7 +733,6 @@ var root = window || global; if (typeof module !== 'undefined' && module.exports) { module.exports = SVGExporter; - root.SVGExporter = SVGExporter; } else { root.SVGExporter = SVGExporter; }