Skip to content

Commit 27593bc

Browse files
committed
add module to webpack config type
1 parent 993f3c1 commit 27593bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/nextjs/src/config/types.ts

Lines changed: 9 additions & 0 deletions
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)