Skip to content

Commit

Permalink
Use Node18 as target in runfiy (#156)
Browse files Browse the repository at this point in the history
* Use Node18 as target in runfiy
  • Loading branch information
kamilkisiela committed Jan 31, 2023
1 parent 4ffa82a commit 57cd333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-months-tell.md
@@ -0,0 +1,5 @@
---
'bob-the-bundler': patch
---

Use Node18 as target in runfiy
4 changes: 2 additions & 2 deletions src/commands/runify.ts
Expand Up @@ -197,7 +197,7 @@ async function buildNext(cwd: string, additionalRequire: string | null) {
await tsup({
entryPoints: [join(cwd, additionalRequire)],
outDir: join(cwd, 'dist'),
target: 'node16',
target: 'node18',
format: ['cjs'],
splitting: false,
skipNodeModulesBundle: true,
Expand Down Expand Up @@ -252,7 +252,7 @@ async function compile(
await tsup({
entryPoints: [join(cwd, entryPoint)],
outDir: out,
target: 'node16',
target: 'node18',
format: [useEsm ? 'esm' : 'cjs'],
splitting: false,
sourcemap: true,
Expand Down

0 comments on commit 57cd333

Please sign in to comment.