From 4c2f3fd253815e69653a21527c5c3846313b952e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=87=91=E8=8A=B1=E5=84=BF?= Date: Thu, 27 Jul 2017 10:18:01 +0800 Subject: [PATCH] Fixed UMD handler --- vue-touch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue-touch.js b/vue-touch.js index ee1abaf..e923482 100644 --- a/vue-touch.js +++ b/vue-touch.js @@ -152,7 +152,7 @@ } } - if (typeof exports == "object") { + if (typeof exports == "object" && typeof module !== 'undefined') { module.exports = vueTouch } else if (typeof define == "function" && define.amd) { define([], function(){ return vueTouch })