We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WebpackConfigObjectWithModuleRules
1 parent 22fab0f commit 9015847Copy full SHA for 9015847
packages/nextjs/src/config/types.ts
@@ -100,6 +100,9 @@ export type WebpackConfigObject = {
100
[key: string]: unknown;
101
};
102
103
+// A convenience type to save us from having to assert the existence of `module.rules` over and over
104
+export type WebpackConfigObjectWithModuleRules = WebpackConfigObject & Required<Pick<WebpackConfigObject, 'module'>>;
105
+
106
// Information about the current build environment
107
export type BuildContext = {
108
dev: boolean;
0 commit comments