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

Integrate with caniuse.com for easier legacy browsers support #331

Open
MaxDesiatov opened this issue May 11, 2022 · 0 comments
Open

Integrate with caniuse.com for easier legacy browsers support #331

MaxDesiatov opened this issue May 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@MaxDesiatov
Copy link
Collaborator

MaxDesiatov commented May 11, 2022

Motivation

As we start using newer features, like BigInt, FinalizationRegistry etc, we should still allow targeting older browsers.

Proposed solution

I'm currently thinking we could make --environment option more granular, allowing users to specify browser versions or JS versions, similarly to how --target option of esbuild works. Based on this information, we could pass additional flags to JSKit build (namely JAVASCRIPTKIT_WITHOUT_WEAKREFS), enable/disable i64 transform etc.

Alternatives considered

Not sure if direct support in SwiftPM and Swift for something like this is on the table yet, I previously tried something similar with swiftwasm/swift-package-manager#373.

@MaxDesiatov MaxDesiatov added the enhancement New feature or request label May 11, 2022
@MaxDesiatov MaxDesiatov transferred this issue from swiftwasm/swift May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant