Site works in Chrome and Edge but Fails in Safari

My site is working in chrome/edge but fails in safari, console has…

I just can’t see where the problem is, any ideas?

Thanks

It appears to be a bug in safari that is the problem. My site uses a package called jsdom and there is an issue that safari can’t handle the if ( !new.target){ … } test. The ! being the problem. See…

Work around Safari/webkit new.target can't come after a prefix operator issue #78