[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

[builders] Fix transitive local TS dep externalization in step bundles - #1609

Closed
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179
Closed

[builders] Fix transitive local TS dep externalization in step bundles#1609
VaguelySerious wants to merge 5 commits into
mainfrom
peter/issue-1179

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Summary

Closes#1179

Fixes transitive local TypeScript dependencies being externalized instead of bundled in step/workflow bundles, which caused native ESM crashes in Nuxt dev (and other frameworks) when extensionless relative imports like ./helpers couldn't be resolved by Node.

Root cause (two issues):

  • The discover-entries plugin's onResolve filter only matched imports with explicit file extensions (jsTsRegex). Extensionless imports like ./helpers were never tracked in importParents, leaving the dependency graph incomplete.
  • The swc plugin only checked if a resolved file was an ancestor of an entry (parentHasChild(resolved, entry)), but never checked if it was a descendant (parentHasChild(entry, resolved)). So even with a correct import graph, transitive local deps got externalized.

Fix:

  • Configure enhanced-resolve in the discover plugin with TS extensions so extensionless imports resolve correctly
  • Broaden the onResolve filter from jsTsRegex to /^[./]/ (relative imports only) to track extensionless local deps
  • Add a reverse parentHasChild(entry, resolved) check in the swc plugin so descendants of entries are bundled

Test plan

  • Added test for extensionless import tracking in discover-entries-esbuild-plugin.test.ts
  • Added test for transitive local dep bundling in swc-esbuild-plugin.test.ts
  • All 20 builder tests pass
  • CI passes

🤖 Generated with Claude Code

@vercel

vercelBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f624c37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
NameType
@workflow/buildersPatch
@workflow/astroPatch
@workflow/cliPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/vitestPatch
tarballsPatch
workflowPatch
@workflow/world-testingPatch
@workflow/nuxtPatch
@workflow/aiPatch
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production119822191419
❌ 💻 Local Development145712191677
❌ 📦 Local Production135311941548
❌ 🐘 Local Postgres135221941548
✅ 🪟 Windows12900129
❌ 📋 Other7252176903
Total6214810027224

❌ Failed Tests

▲ Vercel Production (2 failed)

fastify (1 failed):

sveltekit (1 failed):

  • AbortController abortAnyInStepWorkflow: AbortSignal.any inside a step composes deserialized signals
💻 Local Development (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
📦 Local Production (1 failed)

nextjs-webpack-stable-lazy-discovery-disabled (1 failed):

  • should work with react rendering in step
🐘 Local Postgres (2 failed)

nextjs-webpack-stable-lazy-discovery-disabled (2 failed):

  • DurableAgent e2e core basic text response
  • should work with react rendering in step
📋 Other (2 failed)

e2e-local-prod-nest-stable (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

e2e-local-prod-tanstack-start- (1 failed):

  • AbortController abortFetchUncaughtWorkflow: uncaught fetch AbortError is FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro103026
✅ example103026
✅ express103026
❌ fastify102126
✅ hono103026
✅ nextjs-turbopack12702
✅ nextjs-webpack12702
✅ nitro103026
✅ nuxt103026
❌ sveltekit12117
✅ vite103026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ nuxt-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12810
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable104025
✅ express-stable104025
✅ fastify-stable104025
✅ hono-stable104025
✅ nextjs-turbopack-canary110019
✅ nextjs-turbopack-stable-lazy-discovery-enabled12900
✅ nextjs-webpack-canary110019
❌ nextjs-webpack-stable-lazy-discovery-disabled12720
✅ nextjs-webpack-stable-lazy-discovery-enabled12900
✅ nitro-stable104025
✅ sveltekit-stable12306
✅ vite-stable104025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack12900
❌ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable104025
✅ e2e-local-dev-tanstack-start-104025
✅ e2e-local-postgres-nest-stable104025
✅ e2e-local-postgres-tanstack-start-104025
❌ e2e-local-prod-nest-stable103125
❌ e2e-local-prod-tanstack-start-103125
✅ e2e-vercel-prod-tanstack-start103026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.030s (-31.6% 🟢)1.005s (~)0.975s101.00x
💻 LocalNitro0.032s (-26.2% 🟢)1.006s (~)0.974s101.05x
🐘 PostgresNitro0.045s (-52.6% 🟢)1.014s (-2.8%)0.969s101.49x
💻 LocalNext.js (Turbopack)0.048s1.006s0.958s101.59x
🐘 PostgresExpress0.051s (-11.2% 🟢)1.012s (~)0.961s101.70x
🐘 PostgresNext.js (Turbopack)0.059s1.012s0.953s101.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.240s (-41.4% 🟢)2.161s (-13.9% 🟢)1.921s101.00x
▲ VercelNext.js (Turbopack)0.350s (+39.1% 🔺)2.741s (+17.5% 🔺)2.391s101.46x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.066s (-5.2% 🟢)2.006s (~)0.940s101.00x
💻 LocalNitro1.072s (-5.2% 🟢)2.006s (~)0.934s101.01x
🐘 PostgresNitro1.081s (-5.1% 🟢)2.010s (~)0.928s101.01x
🐘 PostgresExpress1.085s (-5.4% 🟢)2.009s (~)0.924s101.02x
🐘 PostgresNext.js (Turbopack)1.119s2.008s0.890s101.05x
💻 LocalNext.js (Turbopack)1.136s2.006s0.870s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.642s (-57.8% 🟢)3.909s (-33.8% 🟢)2.267s101.00x
▲ VercelNext.js (Turbopack)1.728s (-15.1% 🟢)3.686s (-3.8%)1.958s101.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.392s (-4.9%)11.021s (~)0.630s31.00x
💻 LocalNitro10.415s (-4.8%)11.021s (~)0.605s31.00x
🐘 PostgresNitro10.419s (-4.2%)11.016s (~)0.597s31.00x
🐘 PostgresExpress10.426s (-4.9%)11.014s (~)0.588s31.00x
💻 LocalNext.js (Turbopack)10.663s11.022s0.359s31.03x
🐘 PostgresNext.js (Turbopack)10.742s11.017s0.275s31.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.885s (-41.5% 🟢)15.821s (-37.0% 🟢)1.936s21.00x
▲ VercelNext.js (Turbopack)16.498s (-4.7%)18.131s (-6.5% 🟢)1.633s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.425s (-10.3% 🟢)14.027s (-6.7% 🟢)0.602s51.00x
🐘 PostgresExpress13.456s (-7.7% 🟢)14.018s (-6.7% 🟢)0.562s51.00x
💻 LocalNitro13.492s (-10.4% 🟢)14.027s (-12.5% 🟢)0.535s51.00x
🐘 PostgresNitro13.501s (-7.5% 🟢)14.013s (-6.8% 🟢)0.512s51.01x
💻 LocalNext.js (Turbopack)14.025s14.428s0.403s51.04x
🐘 PostgresNext.js (Turbopack)14.164s15.019s0.855s41.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.577s (-66.5% 🟢)23.798s (-64.3% 🟢)2.221s31.00x
▲ VercelNext.js (Turbopack)21.722s (-58.7% 🟢)23.677s (-56.6% 🟢)1.955s31.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express11.805s (-28.9% 🟢)12.022s (-29.4% 🟢)0.217s81.00x
💻 LocalNitro11.888s (-29.2% 🟢)12.146s (-28.7% 🟢)0.258s81.01x
🐘 PostgresExpress11.923s (-14.9% 🟢)12.016s (-17.7% 🟢)0.093s81.01x
🐘 PostgresNitro12.009s (-14.0% 🟢)12.518s (-12.5% 🟢)0.509s81.02x
💻 LocalNext.js (Turbopack)12.969s13.165s0.197s71.10x
🐘 PostgresNext.js (Turbopack)13.243s14.016s0.773s71.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.294s (-91.5% 🟢)35.592s (-91.0% 🟢)2.297s31.00x
▲ VercelNitro35.493s (-91.6% 🟢)37.985s (-91.1% 🟢)2.492s31.07x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.151s (-9.7% 🟢)2.008s (~)0.857s151.00x
🐘 PostgresExpress1.154s (-8.4% 🟢)2.007s (~)0.853s151.00x
💻 LocalExpress1.173s (-21.2% 🟢)2.006s (~)0.833s151.02x
💻 LocalNitro1.183s (-27.5% 🟢)2.006s (-3.3%)0.823s151.03x
🐘 PostgresNext.js (Turbopack)1.206s2.007s0.801s151.05x
💻 LocalNext.js (Turbopack)1.307s2.006s0.698s151.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.889s (-15.0% 🟢)4.914s (~)2.024s71.00x
▲ VercelNitro2.932s (+4.0%)4.410s (+2.0%)1.477s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.228s (-48.0% 🟢)2.007s (-33.3% 🟢)0.779s151.00x
🐘 PostgresNitro1.238s (-47.3% 🟢)2.008s (-33.3% 🟢)0.770s151.01x
🐘 PostgresNext.js (Turbopack)1.364s2.007s0.643s151.11x
💻 LocalExpress1.716s (-41.9% 🟢)2.006s (-41.9% 🟢)0.290s151.40x
💻 LocalNitro1.760s (-44.0% 🟢)2.006s (-48.4% 🟢)0.246s151.43x
💻 LocalNext.js (Turbopack)1.905s2.292s0.387s141.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.154s (+2.5%)5.938s (~)1.785s61.00x
▲ VercelNext.js (Turbopack)5.522s (-22.2% 🟢)7.626s (-14.4% 🟢)2.104s41.33x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.369s (-60.7% 🟢)2.008s (-49.9% 🟢)0.639s151.00x
🐘 PostgresExpress1.382s (-60.4% 🟢)2.009s (-49.9% 🟢)0.627s151.01x
🐘 PostgresNext.js (Turbopack)1.625s2.007s0.382s151.19x
💻 LocalExpress4.681s (-43.9% 🟢)5.010s (-44.5% 🟢)0.330s63.42x
💻 LocalNext.js (Turbopack)5.107s5.678s0.571s63.73x
💻 LocalNitro5.394s (-35.4% 🟢)5.680s (-37.0% 🟢)0.286s63.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.656s (+88.8% 🔺)8.606s (+55.5% 🔺)1.950s41.00x
▲ VercelNext.js (Turbopack)8.190s (-8.1% 🟢)9.982s (-8.9% 🟢)1.792s41.23x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.163s (-7.5% 🟢)2.008s (~)0.845s151.00x
🐘 PostgresNitro1.165s (-7.3% 🟢)2.008s (~)0.843s151.00x
🐘 PostgresNext.js (Turbopack)1.211s2.007s0.796s151.04x
💻 LocalNext.js (Turbopack)1.361s2.006s0.645s151.17x
💻 LocalExpress1.385s (-26.9% 🟢)2.006s (-15.1% 🟢)0.621s151.19x
💻 LocalNitro1.441s (-22.7% 🟢)2.007s (-14.3% 🟢)0.566s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.095s (+5.6% 🔺)4.581s (-1.3%)1.486s71.00x
▲ VercelNitro3.453s (+40.4% 🔺)5.695s (+36.6% 🔺)2.242s61.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.242s (-47.0% 🟢)2.008s (-33.3% 🟢)0.766s151.00x
🐘 PostgresNitro1.250s (-46.6% 🟢)2.009s (-33.3% 🟢)0.760s151.01x
🐘 PostgresNext.js (Turbopack)1.353s2.008s0.655s151.09x
💻 LocalExpress1.821s (-41.9% 🟢)2.222s (-40.9% 🟢)0.400s141.47x
💻 LocalNext.js (Turbopack)2.043s2.825s0.783s111.64x
💻 LocalNitro2.050s (-33.1% 🟢)2.508s (-35.5% 🟢)0.458s121.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro7.548s (+133.5% 🔺)9.484s (+86.8% 🔺)1.935s41.00x
▲ VercelNext.js (Turbopack)8.651s (+175.3% 🔺)10.910s (+141.3% 🔺)2.259s31.15x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.368s (-60.7% 🟢)2.008s (-49.9% 🟢)0.640s151.00x
🐘 PostgresExpress1.376s (-60.7% 🟢)2.007s (-50.0% 🟢)0.631s151.01x
🐘 PostgresNext.js (Turbopack)1.605s2.008s0.404s151.17x
💻 LocalNext.js (Turbopack)5.298s5.847s0.550s63.87x
💻 LocalExpress5.453s (-38.0% 🟢)6.015s (-35.1% 🟢)0.562s63.99x
💻 LocalNitro5.829s (-36.3% 🟢)6.215s (-38.0% 🟢)0.386s54.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)8.858s (+31.1% 🔺)10.749s (+25.8% 🔺)1.891s31.00x
▲ VercelNitro11.317s (+122.2% 🔺)13.124s (+92.5% 🔺)1.807s31.28x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.471s (-42.6% 🟢)1.008s (~)0.536s601.00x
💻 LocalExpress0.475s (-51.8% 🟢)1.004s (-6.7% 🟢)0.529s601.01x
🐘 PostgresExpress0.475s (-43.4% 🟢)1.006s (-1.7%)0.531s601.01x
💻 LocalNitro0.502s (-48.8% 🟢)1.004s (-8.2% 🟢)0.502s601.06x
🐘 PostgresNext.js (Turbopack)0.680s1.007s0.327s601.44x
💻 LocalNext.js (Turbopack)0.713s1.004s0.291s601.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.947s (-77.6% 🟢)6.701s (-72.1% 🟢)1.754s101.00x
▲ VercelNext.js (Turbopack)5.093s (-64.9% 🟢)6.842s (-57.5% 🟢)1.749s91.03x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.090s (-43.4% 🟢)1.865s (-11.2% 🟢)0.775s491.00x
🐘 PostgresExpress1.091s (-44.8% 🟢)1.903s (-15.7% 🟢)0.812s481.00x
💻 LocalExpress1.160s (-61.5% 🟢)2.005s (-44.1% 🟢)0.845s451.06x
💻 LocalNitro1.201s (-60.4% 🟢)2.006s (-46.6% 🟢)0.805s451.10x
🐘 PostgresNext.js (Turbopack)1.643s2.008s0.364s451.51x
💻 LocalNext.js (Turbopack)1.800s2.005s0.205s451.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.508s (-68.3% 🟢)14.995s (-63.7% 🟢)2.488s71.00x
▲ VercelNext.js (Turbopack)13.670s (-72.6% 🟢)16.091s (-68.9% 🟢)2.422s61.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.085s (-47.7% 🟢)2.676s (-38.8% 🟢)0.590s451.00x
🐘 PostgresNitro2.183s (-46.8% 🟢)2.866s (-37.8% 🟢)0.683s421.05x
💻 LocalExpress2.638s (-71.4% 🟢)3.007s (-70.0% 🟢)0.369s401.27x
💻 LocalNitro2.673s (-71.3% 🟢)3.008s (-70.0% 🟢)0.335s401.28x
🐘 PostgresNext.js (Turbopack)3.197s4.010s0.812s301.53x
💻 LocalNext.js (Turbopack)3.816s4.007s0.192s301.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro37.160s (-61.7% 🟢)39.457s (-59.9% 🟢)2.297s41.00x
▲ VercelNext.js (Turbopack)42.929s (-59.9% 🟢)45.670s (-58.1% 🟢)2.741s31.16x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.191s (-32.4% 🟢)1.006s (~)0.815s601.00x
🐘 PostgresExpress0.193s (-31.7% 🟢)1.006s (~)0.813s601.01x
🐘 PostgresNext.js (Turbopack)0.243s1.006s0.762s601.27x
💻 LocalNitro0.436s (-27.9% 🟢)1.004s (-1.7%)0.568s602.28x
💻 LocalExpress0.442s (-21.2% 🟢)1.004s (~)0.562s602.31x
💻 LocalNext.js (Turbopack)0.520s1.004s0.484s602.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.748s (+233.6% 🔺)8.703s (+129.4% 🔺)1.955s71.00x
▲ VercelNitro7.566s (+355.5% 🔺)9.402s (+180.6% 🔺)1.836s71.12x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.317s (-36.1% 🟢)1.006s (~)0.689s901.00x
🐘 PostgresExpress0.319s (-37.4% 🟢)1.006s (~)0.687s901.01x
🐘 PostgresNext.js (Turbopack)0.453s1.006s0.553s901.43x
💻 LocalExpress2.168s (-13.7% 🟢)2.765s (-8.1% 🟢)0.597s336.84x
💻 LocalNitro2.176s (-14.3% 🟢)3.008s (~)0.833s306.86x
💻 LocalNext.js (Turbopack)2.248s2.977s0.729s317.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)14.978s (+323.7% 🔺)16.964s (+226.7% 🔺)1.986s61.00x
▲ VercelNitro15.946s (+394.3% 🔺)18.031s (+273.9% 🔺)2.084s51.06x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.647s (-20.9% 🟢)1.006s (-1.1%)0.359s1201.00x
🐘 PostgresNitro0.665s (-15.8% 🟢)1.007s (~)0.342s1201.03x
🐘 PostgresNext.js (Turbopack)0.940s1.245s0.304s971.45x
💻 LocalExpress9.700s (-13.3% 🟢)10.279s (-13.9% 🟢)0.580s1214.98x
💻 LocalNitro10.101s (-9.7% 🟢)10.613s (-9.0% 🟢)0.512s1215.60x
💻 LocalNext.js (Turbopack)11.013s11.577s0.564s1117.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.852s (+218.1% 🔺)35.528s (+189.2% 🔺)2.676s41.00x
▲ VercelNitro33.330s (+331.6% 🔺)35.684s (+279.6% 🔺)2.355s41.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.126s (+465.6% 🔺)2.005s (+99.6% 🔺)0.010s (-14.9% 🟢)2.017s (+98.1% 🔺)0.891s101.00x
🐘 PostgresExpress1.132s (+452.0% 🔺)1.998s (+100.0% 🔺)0.001s (-12.5% 🟢)2.010s (+98.7% 🔺)0.878s101.01x
🐘 PostgresNitro1.134s (+453.2% 🔺)2.000s (+100.1% 🔺)0.002s (+13.3% 🔺)2.011s (+98.9% 🔺)0.877s101.01x
💻 LocalNitro1.137s (+432.0% 🔺)2.005s (+99.6% 🔺)0.012s (-3.2%)2.019s (+98.2% 🔺)0.883s101.01x
💻 LocalNext.js (Turbopack)1.175s2.003s0.010s2.017s0.843s101.04x
🐘 PostgresNext.js (Turbopack)1.200s2.002s0.001s2.010s0.810s101.07x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.275s (-66.8% 🟢)3.538s (-59.1% 🟢)1.619s (+156.2% 🔺)5.605s (-42.7% 🟢)3.331s101.00x
▲ VercelNitro2.283s (-40.4% 🟢)3.486s (-33.9% 🟢)1.528s (+105.9% 🔺)5.478s (-15.5% 🟢)3.196s101.00x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.506s (+99.0% 🔺)2.009s (+95.3% 🔺)0.010s (+4.1%)2.021s (+94.4% 🔺)0.515s301.00x
💻 LocalNitro1.524s (+81.7% 🔺)2.010s (+98.7% 🔺)0.010s (+5.3% 🔺)2.022s (+81.2% 🔺)0.498s301.01x
🐘 PostgresExpress1.530s (+142.9% 🔺)2.004s (+99.1% 🔺)0.004s (+6.2% 🔺)2.026s (+98.1% 🔺)0.496s301.02x
🐘 PostgresNitro1.553s (+148.8% 🔺)2.007s (+99.3% 🔺)0.004s (-2.5%)2.027s (+98.2% 🔺)0.474s301.03x
💻 LocalNext.js (Turbopack)1.656s2.009s0.010s2.022s0.366s301.10x
🐘 PostgresNext.js (Turbopack)1.679s2.009s0.004s2.025s0.347s301.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.445s (-44.2% 🟢)11.084s (-39.2% 🟢)0.169s (-19.8% 🟢)11.790s (-37.7% 🟢)2.345s61.00x
▲ VercelNitro11.475s (-61.0% 🟢)13.133s (-57.4% 🟢)0.442s (+295.0% 🔺)14.088s (-55.7% 🟢)2.613s51.21x
▲ VercelExpress⚠️missing-----

🔍 Observability: Next.js (Turbopack) | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.657s (-31.7% 🟢)0.991s (-22.4% 🟢)0.000s (+130.0% 🔺)1.020s (-21.9% 🟢)0.363s601.00x
🐘 PostgresNitro0.685s (-29.3% 🟢)1.031s (-17.4% 🟢)0.000s (-100.0% 🟢)1.042s (-17.1% 🟢)0.357s581.04x
🐘 PostgresNext.js (Turbopack)0.794s1.072s0.000s1.079s0.285s561.21x
💻 LocalNitro1.334s (+9.1% 🔺)2.016s (~)0.000s (~)2.017s (~)0.684s302.03x
💻 LocalExpress1.367s (+11.6% 🔺)2.016s (~)0.000s (-30.0% 🟢)2.018s (~)0.651s302.08x
💻 LocalNext.js (Turbopack)1.425s2.014s0.000s2.017s0.592s302.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.864s (+125.0% 🔺)8.334s (+89.7% 🔺)0.000s (-100.0% 🟢)8.770s (+82.4% 🔺)1.906s71.00x
▲ VercelNext.js (Turbopack)6.975s (-31.5% 🟢)8.761s (-23.9% 🟢)0.000s (+Infinity% 🔺)9.248s (-23.3% 🟢)2.273s71.02x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.306s (-26.3% 🟢)2.101s (-3.5%)0.000s (+Infinity% 🔺)2.114s (-3.9%)0.808s291.00x
🐘 PostgresNitro1.381s (-22.9% 🟢)2.102s (-1.8%)0.000s (-3.4%)2.128s (-2.1%)0.747s291.06x
🐘 PostgresNext.js (Turbopack)1.536s2.036s0.000s2.080s0.544s291.18x
💻 LocalNext.js (Turbopack)2.716s3.180s0.001s3.186s0.470s202.08x
💻 LocalExpress3.113s (-10.2% 🟢)3.779s (-6.3% 🟢)0.001s (-6.3% 🟢)3.784s (-6.3% 🟢)0.671s162.38x
💻 LocalNitro3.135s (-7.4% 🟢)4.030s (~)0.001s (+25.0% 🔺)4.033s (~)0.897s152.40x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro8.986s (+119.5% 🔺)10.752s (+100.1% 🔺)0.000s (-100.0% 🟢)11.224s (+93.7% 🔺)2.238s61.00x
▲ VercelNext.js (Turbopack)11.926s (+112.3% 🔺)13.729s (+96.6% 🔺)0.000s (-100.0% 🟢)14.202s (+88.4% 🔺)2.276s51.33x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress16/21
🐘 PostgresExpress11/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres13/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres15/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two well-targeted fixes for the same underlying problem (transitive local TS deps not getting bundled). Verified each piece:

Discover plugin resolver config. The previous promisify(enhancedResolveOriginal) used the library's defaults, which don't include TS extensions. So await enhancedResolve(args.resolveDir, './helpers') would fail when the file is helpers.ts, the if (resolved) branch never fired, and importParents stayed empty for that edge. The new enhancedResolveOriginal.create({ extensions: [...], ... }) config matches the swc plugin's resolver, with the right comment explaining why ("important for parentHasChild() graph lookups"). The added symlinks: true is also subtly important for monorepo setups where local packages resolve via symlinks.

Swc plugin descendant check. The old parentHasChild(normalizedResolvedPath, normalizedEntry) check only handled "this file is an ancestor of an entry," which catches top-level wrappers but misses "this file is a transitive child of an entry" — exactly the helpers/constants case. The new inverse check fixes that with a clear comment.

Tests are well-targeted. Confirmed by reverting just the two production files on this branch and re-running the new tests — both fail without the fix:

  • discover-entries-esbuild-plugin.test.ts "tracks extensionless relative imports" fails because importParents.get(workflow).has(constants) returns false.
  • swc-esbuild-plugin.test.ts "bundles transitive local dependencies" fails because the output contains import { MSG } from "../shared/constants.ts" instead of the inlined "world".

So the tests are validating the bug, not just exercising the new code path. All 137 builder tests pass on the branch.

Discovery runs first in production. Verified base-builder.ts:244-260 runs createDiscoverEntriesPlugin in its own esbuild pass before any createSwcPlugin pass. So importParents is populated by the time the new descendant check runs.

PR description's note about broadening onResolve filter from jsTsRegex to /.*/ doesn't match the diff — that change is already on main from an earlier commit. Probably worth tightening the description, but no behavior issue.

Two issues caused local transitive dependencies to be externalized
instead of bundled in step/workflow bundles:
1. The discover-entries plugin's onResolve filter only matched imports
with explicit file extensions (jsTsRegex). Extensionless imports
like `./helpers` were never tracked in the import graph.
2. The swc plugin only checked if a file was an ancestor of an entry
(parentHasChild(resolved, entry)) but never checked if it was a
descendant (parentHasChild(entry, resolved)). So even with a
correct import graph, transitive local deps got externalized.
Fixes: configure enhanced-resolve with TS extensions, broaden the
onResolve filter to catch all relative imports, and add the reverse
parentHasChild check. Add explicit symlinks: true to the
discover-entries resolver to align with swc-esbuild-plugin's
NODE_ESM_RESOLVE_OPTIONS for monorepos with symlinked packages.
Closes#1179
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stableCherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt/Nitro dev] Workflow step bundle still externalizes transitive local TS modules (native ESM crash)

3 participants

@VaguelySerious@TooTallNate@ijjk