Skip to content

Commit

Permalink
chore: bump server pre-compiled target to Node.js 14 (#41424)
Browse files Browse the repository at this point in the history
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 <tim@timneutkens.nl>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
3 people committed Oct 15, 2022
1 parent c66b8f3 commit ff70562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/taskfile-swc.js
Expand Up @@ -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: {
Expand Down

0 comments on commit ff70562

Please sign in to comment.