Unverified Commit d5a4dec0 authored by Guy Bedford's avatar Guy Bedford Committed by GitHub

fix: add declarations for compiled webpack and loader (#21741)

This should resolve the typing issues described in https://github.com/vercel/next.js/issues/21390 from the webpack inlining, by declaring `next/dist/compiled/webpack` in the main typing file as a source.
parent bd0b650d
......@@ -23,6 +23,9 @@ import {
// @ts-ignore This path is generated at build time and conflicts otherwise
import next from '../dist/server/next'
declare module 'next/dist/compiled/loader-utils'
declare module 'next/dist/compiled/webpack/webpack'
// Extend the React types with missing properties
declare module 'react' {
// <html amp=""> support
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment