Skip to content
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

add Babel plugin to Rollup configuration to target older browsers #140

Open
drichar opened this issue Feb 8, 2024 · 0 comments
Open

add Babel plugin to Rollup configuration to target older browsers #140

drichar opened this issue Feb 8, 2024 · 0 comments

Comments

@drichar
Copy link
Collaborator

drichar commented Feb 8, 2024

The library uses ES6 classes with private methods, which Safari started supporting in v15. Older versions of Safari will throw:

SyntaxError: Unexpected private name #<method name>. Cannot parse class method with private name.

Using @rollup/plugin-babel older browsers can be targeted with polyfills.

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