Skip to content

Commit

Permalink
default to target: node14.8 (#4742)
Browse files Browse the repository at this point in the history
* default to target: node16 - fixes #1538

* Update packages/kit/src/core/build/build_server.js

* Update .changeset/hungry-coats-sort.md

Co-authored-by: Conduitry <[email protected]>

Co-authored-by: Conduitry <[email protected]>
  • Loading branch information
Rich-Harris and Conduitry authored Apr 26, 2022
1 parent 40b7215 commit ec96b7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hungry-coats-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Default to target: node14.8, so that top-level await is supported in user code
2 changes: 1 addition & 1 deletion packages/kit/src/core/build/build_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export async function build_server(

const default_config = {
build: {
target: 'es2020'
target: 'node14.8'
},
ssr: {
// when developing against the Kit src code, we want to ensure that
Expand Down

0 comments on commit ec96b7c

Please sign in to comment.