Skip to content

Sentry Browser SyntaxError on Safari <16.4 #20483

@chargome

Description

@chargome

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/cloudflare - hono

SDK Version

latest

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

pls ignore me

Steps to Reproduce

Load page using Safari 15

Expected Result

When using Sentry's CommonJS imports, it unconditionally requires the postgres integration at module load time (this is because of the export which becomes a require). The postgres integration contains a regex literal with a negative lookbehind assertion inside sanitizeSqlQuery

Actual Result

The bundle in which Sentry is in errors out due to syntax error (in our case it's the full page)

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions