Fails in Web Worker
curran opened this issue · comments
Curran Kelleher commented
Related to #258
In Web Workers, btoa
is defined as a global, but window
is not.
This error is thrown in a Web Worker:
https://github.com/Rich-Harris/magic-string/blob/master/src/SourceMap.js#L10
Suggested fix: check for btoa
not window.btoa
.