Skip to content

Commit 6218530

Browse files
fadomiremysticatea
authored andcommitted
Fix: umd version contains ES2015 syntax (#22)
1 parent ddf8266 commit 6218530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports.EventTarget = module.exports["default"] = EventTarget
1111
module.exports.defineEventAttribute = defineEventAttribute
1212
`
1313
const umdOutro = `if (typeof module === "undefined" && typeof define === "undefined") {
14-
const global = Function("return this")()
14+
var global = Function("return this")()
1515
global.EventTargetShim = EventTarget
1616
global.EventTargetShim.defineEventAttribute = defineEventAttribute
1717
}

0 commit comments

Comments
 (0)