Skip to content

Commit

Permalink
🐛 avoid const in umd build (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
caub authored and mysticatea committed Mar 7, 2019
1 parent 68150a3 commit 7241089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/abort-controller.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports.AbortController = module.exports["default"] = AbortController
module.exports.AbortSignal = AbortSignal
`
const umdOutro = `if (typeof module === "undefined" && typeof define === "undefined") {
const global = Function("return this")()
var global = Function("return this")()
if (typeof global.AbortController === "undefined") {
global.AbortController = AbortController
global.AbortSignal = AbortSignal
Expand Down

0 comments on commit 7241089

Please sign in to comment.