Skip to content

Commit 57cd333

Browse files
authored
Use Node18 as target in runfiy (#156)
* Use Node18 as target in runfiy
1 parent 4ffa82a commit 57cd333

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/empty-months-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'bob-the-bundler': patch
3+
---
4+
5+
Use Node18 as target in runfiy

src/commands/runify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async function buildNext(cwd: string, additionalRequire: string | null) {
197197
await tsup({
198198
entryPoints: [join(cwd, additionalRequire)],
199199
outDir: join(cwd, 'dist'),
200-
target: 'node16',
200+
target: 'node18',
201201
format: ['cjs'],
202202
splitting: false,
203203
skipNodeModulesBundle: true,
@@ -252,7 +252,7 @@ async function compile(
252252
await tsup({
253253
entryPoints: [join(cwd, entryPoint)],
254254
outDir: out,
255-
target: 'node16',
255+
target: 'node18',
256256
format: [useEsm ? 'esm' : 'cjs'],
257257
splitting: false,
258258
sourcemap: true,

0 commit comments

Comments
 (0)