Skip to content

Commit

Permalink
feat(webpack-loaders): support dummy span interface (vercel/turborepo…
Browse files Browse the repository at this point in the history
…#8073)

### 

Minor fix to next.js specific loader won't fail if they try to stop
current span.

Closes PACK-3033
  • Loading branch information
kwonoj authored May 3, 2024
1 parent 0a15879 commit f784808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/turbopack-node/js/src/transforms/webpack-loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ class DummySpan {
async traceAsyncFn<T>(fn: (span: DummySpan) => T | Promise<T>): Promise<T> {
return await fn(this);
}

stop() {
return;
}
}

type ResolveOptions = {
Expand Down

0 comments on commit f784808

Please sign in to comment.