Skip to content

Safari versions below v16.4 are unsupported #1687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
larabr opened this issue May 16, 2025 · 0 comments
Open

Safari versions below v16.4 are unsupported #1687

larabr opened this issue May 16, 2025 · 0 comments

Comments

@larabr
Copy link

larabr commented May 16, 2025

The bundled lib (see chai/chai.js on npm, L156-158) uses static initialization blocks that are only supported in newer browser versions: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Static_initialization_blocks .

This breaks support for Safari 14 and 15, which are supposed to be supported according to the release notes on v5: #1565 .

Changing the esbuild target to e.g. 'es2021' should fix this problem 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant