Skip to content

update build targets used in adapters to allow top-level await #13609

@Rich-Harris

Description

@Rich-Harris

Describe the problem

We learned in #13598 that we can't use top-level await in SvelteKit without the build failing for adapters that are using esbuild with a target that doesn't support that feature.

I'm pretty confident that all the deployment targets in question do support TLA, meaning the target is stricter than it needs to be.

Describe the proposed solution

Update the target in the Cloudflare/Netlify/Vercel adapters to a more correct version. This will allow TLA in user code today, and will allow future versions of SvelteKit (starting with 3.0, since it would be a breaking change to require updated adapter versions) to use it internally as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions