Skip to content

Commit

Permalink
feat: update default target to node16 (floydspace#466)
Browse files Browse the repository at this point in the history
* Update README.md

* feat: update default target to node16
  • Loading branch information
yuyokk authored May 23, 2023
1 parent ebd4fd4 commit 49ad43e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The following `esbuild` options are automatically set.
| `incremental` | N/A | Cannot be overridden. Use `disableIncremental` to disable it |
| `outDir` | N/A | Cannot be overridden |
| `platform` | `'node'` | Set `format` to `esm` to enable ESM support |
| `target` | `'node12'` | We dynamically set this. See [Supported Runtimes](#supported-runtimes) |
| `target` | `'node16'` | We dynamically set this. See [Supported Runtimes](#supported-runtimes) |
| `watch` | N/A | Cannot be overridden |

#### Packager Options
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class EsbuildServerlessPlugin implements ServerlessPlugin {
concurrency: Infinity,
zipConcurrency: Infinity,
bundle: true,
target: 'node12',
target: 'node16',
external: [],
exclude: ['aws-sdk'],
nativeZip: false,
Expand Down

0 comments on commit 49ad43e

Please sign in to comment.