Skip to content
This repository was archived by the owner on Nov 29, 2025. It is now read-only.

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

@MaxDesiatov

Description

@MaxDesiatov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions