[Pkg-javascript-commits] [node-umd] 05/07: Fix a case for custom RequireJS loader which has exports in scope but not module
Bastien Roucariès
rouca at moszumanska.debian.org
Mon Apr 17 07:38:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to annotated tag 2.1.0
in repository node-umd.
commit 35e5e62a351b2ec0b184b8f1cbfea00c4400b137
Author: Martin Zagora <zaggino at gmail.com>
Date: Wed Mar 26 00:14:47 2014 +1100
Fix a case for custom RequireJS loader which has exports in scope but not module
---
template.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/template.js b/template.js
index 2a9bbb9..876b46f 100644
--- a/template.js
+++ b/template.js
@@ -1,6 +1,6 @@
;(function (f) {
// CommonJS
- if (typeof exports === "object") {
+ if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f();
// RequireJS
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-umd.git
More information about the Pkg-javascript-commits
mailing list