Skip to content

Commit 7241089

Browse files
caubmysticatea
authored andcommitted
🐛 avoid const in umd build (#13)
1 parent 68150a3 commit 7241089

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/abort-controller.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports.AbortController = module.exports["default"] = AbortController
1212
module.exports.AbortSignal = AbortSignal
1313
`
1414
const umdOutro = `if (typeof module === "undefined" && typeof define === "undefined") {
15-
const global = Function("return this")()
15+
var global = Function("return this")()
1616
if (typeof global.AbortController === "undefined") {
1717
global.AbortController = AbortController
1818
global.AbortSignal = AbortSignal

0 commit comments

Comments
 (0)