Skip to content

Commit bd8baea

Browse files
committed
add module to webpack config type
1 parent 327e5aa commit bd8baea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/nextjs/src/config/types.ts

+9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ export type WebpackConfigObject = {
5656
resolve?: {
5757
alias?: { [key: string]: string | boolean };
5858
};
59+
module?: {
60+
rules: Array<{
61+
test: string | RegExp;
62+
use: Array<{
63+
loader: string;
64+
options: Record<string, unknown>;
65+
}>;
66+
}>;
67+
};
5968
} & {
6069
// other webpack options
6170
[key: string]: unknown;

0 commit comments

Comments
 (0)