Skip to content

Commit

Permalink
compile server build to node 18 (#7292)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Aug 29, 2023
1 parent 86a92aa commit bf042e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/young-pants-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@remix-run/dev": major
---

Compile server build to Node 18.

This allows features like top-level `await` to be used within a Remix app.
2 changes: 1 addition & 1 deletion packages/remix-dev/compiler/server/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const createEsbuildConfig = (
minifySyntax: true,
minify: ctx.options.mode === "production" && ctx.config.serverMinify,
mainFields: ctx.config.serverMainFields,
target: "node14",
target: "node18",
loader: loaders,
bundle: true,
logLevel: "silent",
Expand Down

0 comments on commit bf042e7

Please sign in to comment.