From 0a71d8b4d9fac35fb3c8d14d37380aa2b40ebe2c Mon Sep 17 00:00:00 2001 From: Sukka Date: Sat, 15 Oct 2022 09:40:57 +0800 Subject: [PATCH] chore: bump server pre-compiled target to Node.js 14 (#41424) Follows #41150, bump the server-side code pre-compile target to Node.js 14.0.0. This could also potentially reduce the size of the server bundle and increase the performance (less transformation and fewer inlined swc helpers). Co-authored-by: Tim Neutkens Co-authored-by: JJ Kasper --- packages/next/taskfile-swc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/next/taskfile-swc.js b/packages/next/taskfile-swc.js index 22f123159fa3a..4c3b7ec4fe3cb 100644 --- a/packages/next/taskfile-swc.js +++ b/packages/next/taskfile-swc.js @@ -65,7 +65,8 @@ module.exports = function (task) { }, env: { targets: { - node: '12.0.0', + // follow the version defined in packages/next/package.json#engine + node: '14.0.0', }, }, jsc: {