The problem seems to be in browsers.js:
module.exports = window.fetch || (window.fetch = require('unfetch').default || require('unfetch'));
And I think this could be solved by replacing window with global?
global is also not defined. We can use `self.
I hit the same issue when building from TypeScript, should I use a fork with this PR merged?
The problem seems to be in browsers.js:
module.exports = window.fetch || (window.fetch = require('unfetch').default || require('unfetch'));
And I think this could be solved by replacing window with global?