diff --git a/src/export.js b/src/export.js index 1602bc44..e44da7cf 100644 --- a/src/export.js +++ b/src/export.js @@ -32,6 +32,8 @@ paper = new (PaperScope.inject(Base.exports, { // confuse the require.js optimizer. if (typeof define === 'function' && define.amd) define('paper', paper); +else if (typeof module === 'object') + module.exports = paper; /*#*/ } else if (__options.environment == 'node') {