Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit b32cf74

Browse files
committed
remove manual exports as rollups 'mud' setting should take care of that.
1 parent 4a2c7ac commit b32cf74

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,10 @@ vueTouch.registerCustomEvent = function registerCustomEvent(event, options = {})
159159
// ********
160160

161161

162-
if (typeof exports == "object") {
163-
module.exports = vueTouch
164-
} else if (typeof define == "function" && define.amd) {
165-
define([], function(){ return vueTouch })
166-
} else if (window.Vue) {
162+
// Register
163+
if (typeof exports !== "object") &&  // no commmonJS
164+
(typeof define !== "function" && !define.amd) && // no AMD
165+
(window.Vue) {
167166
window.VueTouch = vueTouch
168167
Vue.use(vueTouch)
169168
}

0 commit comments

Comments
 (0)