Open vladshcherbin opened 2 years ago
Suggest preventing the error from rollup config side: https://stackoverflow.com/questions/43556940/rollup-js-and-this-keyword-is-equivalent-to-undefined . Since nice modal uses tsc command to compile the code, suppose it generates some kind of "standard" code.
I saw this solution and would love to use it only if no other choice.
Two places use this
in compiled code - __assign
and __rest
at the top.
I believe this are polyfills to quite popular functions.
Wondering what other libraries do since I haven't seen this warning with other packages and I do think they use this functions 🕵️
When using rollup, a warning is shown:
It leads to https://rollupjs.org/guide/en/#error-this-is-undefined
Is there a way to prevent this error?
No other packages in project produce errors or warnings.