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

Add webpack type to ncc bundle (#21785)

This adds a simple typing definition to the Webpack ncc output.

Fixes https://github.com/vercel/next.js/issues/21390.
parent e750f437
export namespace webpack {
export type Compiler = any
export type Plugin = any
}
export namespace webpack {
export type Compiler = any
export type Plugin = any
}
...@@ -23,9 +23,6 @@ import { ...@@ -23,9 +23,6 @@ import {
// @ts-ignore This path is generated at build time and conflicts otherwise // @ts-ignore This path is generated at build time and conflicts otherwise
import next from '../dist/server/next' 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 // Extend the React types with missing properties
declare module 'react' { declare module 'react' {
// <html amp=""> support // <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