Turbopack: Implement `next/font/local` with `BeforeResolvePlugin` and show…
Turbopack: Implement `next/font/local` with `BeforeResolvePlugin` and show custom error message (#65870) Depends on vercel/turbo#8165 This: - Creates and uses a `BeforeResolvePlugin` to handle requests to `next/font/local/target.css` instead of `ImportMapping` replacers - Returns a `ResolveResultItem::Error` which includes a custom `StyledString` describing the missing font file Test Plan: `TURBOPACK=1 pnpm test-dev test/e2e/app-dir/next-font/next-font.test.ts`
Showing
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment