Skip to content

turbopack-231016.1

@timneutkens timneutkens tagged this 15 Oct 13:24
### Description

Next.js needs a way to error when certain globals are used in the edge
runtime. For example `setImmediate`, to cause an error at compile time.
This implements support for `FreeVarReference::Error` which can be used
to provide an error message.
Since the internals already track the span the message is applied with
the right code location automatically.

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
Assets 2
Loading