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.
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
targetthat doesn't support that feature.I'm pretty confident that all the deployment targets in question do support TLA, meaning the
targetis stricter than it needs to be.Describe the proposed solution
Update the
targetin 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.