Skip to content

Commit 49ad43e

Browse files
authored
feat: update default target to node16 (#466)
* Update README.md * feat: update default target to node16
1 parent ebd4fd4 commit 49ad43e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The following `esbuild` options are automatically set.
101101
| `incremental` | N/A | Cannot be overridden. Use `disableIncremental` to disable it |
102102
| `outDir` | N/A | Cannot be overridden |
103103
| `platform` | `'node'` | Set `format` to `esm` to enable ESM support |
104-
| `target` | `'node12'` | We dynamically set this. See [Supported Runtimes](#supported-runtimes) |
104+
| `target` | `'node16'` | We dynamically set this. See [Supported Runtimes](#supported-runtimes) |
105105
| `watch` | N/A | Cannot be overridden |
106106

107107
#### Packager Options

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class EsbuildServerlessPlugin implements ServerlessPlugin {
266266
concurrency: Infinity,
267267
zipConcurrency: Infinity,
268268
bundle: true,
269-
target: 'node12',
269+
target: 'node16',
270270
external: [],
271271
exclude: ['aws-sdk'],
272272
nativeZip: false,

0 commit comments

Comments
 (0)