detect-browser
detect-browser copied to clipboard
`this` has been rewritten to `undefined` on the new version of rollup
Hi sir/madam,
I run into this issue with the latest version of rollup js
(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
node_modules/detect-browser/es/index.js
1: var __spreadArrays = (this && this.__spreadArrays) || function () {
^
2: for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
3: for (var r = Array(s), k = 0, i = 0; i < il; i++)
...and 1 other occurrence
May you adjust your lib to work with rollup js?
Thankyou for your hard work!
I will definitely take a look - thanks for reporting the issue!
still got this warning. I read @xon52 refs, seems work when set this package in external. But I need make it bundle in my package. Any help is appreciated
+1 on this issue