Description
The @statsig/session-replay package (v3.25.5) causes the website to completely fail to load on Safari version 15.6.
There is a closed issue here about the same exact problem, it was closed despite this issue not being fixed. I have verified that this is still an issue in the latest version
Steps to Reproduce
- Install @statsig/session-replay@3.25.5
- Include the package in a React application
- Build the application for production
- Open the built application in Safari 15
- The website fails to load
Error Message
SyntaxError: Invalid regular expression: invalid group specifier name
Expected Behavior
The website should load normally and session replay functionality should work.
Actual Behavior
The website completely fails to load with the above syntax error.
Environment
- Browser: Safari 15.6.1 (macOS)
- Package Version: @statsig/session-replay@3.14.1
- Build Tool: Create React App with CRACO
- JavaScript Target: ES6
Additional Information
The issue is consistent and reproducible