From 9db80fece5e63215acdb4975de5c2f56e7e7288c Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 8 Nov 2021 16:19:33 +0100 Subject: [PATCH] Add webpack5 namespace to fix type errors (#31140) --- packages/next/bundles/webpack/packages/webpack.d.ts | 6 ++++++ packages/next/compiled/webpack/webpack.d.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/packages/next/bundles/webpack/packages/webpack.d.ts b/packages/next/bundles/webpack/packages/webpack.d.ts index e2a4f8f9d7963ac..414c145be49046d 100644 --- a/packages/next/bundles/webpack/packages/webpack.d.ts +++ b/packages/next/bundles/webpack/packages/webpack.d.ts @@ -2,3 +2,9 @@ export namespace webpack { export type Compiler = any export type Plugin = any } + +export namespace webpack5 { + export type Compiler = any + export type Plugin = any + export type Configuration = any +} diff --git a/packages/next/compiled/webpack/webpack.d.ts b/packages/next/compiled/webpack/webpack.d.ts index e2a4f8f9d7963ac..414c145be49046d 100644 --- a/packages/next/compiled/webpack/webpack.d.ts +++ b/packages/next/compiled/webpack/webpack.d.ts @@ -2,3 +2,9 @@ export namespace webpack { export type Compiler = any export type Plugin = any } + +export namespace webpack5 { + export type Compiler = any + export type Plugin = any + export type Configuration = any +}