@@ -23,6 +23,9 @@ module.exports =
23
23
} ,
24
24
}
25
25
26
+ /**
27
+ * @type {import('next').NextConfig }
28
+ */
26
29
let nextConfig = Object . assign ( { } , inputConfig , {
27
30
webpack ( config , options ) {
28
31
config . resolve . alias [ 'next-mdx-import-source-file' ] = [
@@ -44,22 +47,16 @@ module.exports =
44
47
} )
45
48
46
49
if ( process . env . TURBOPACK ) {
47
- nextConfig . experimental = Object . assign ( { } , nextConfig ?. experimental , {
48
- turbo : Object . assign ( { } , nextConfig ?. experimental ?. turbo , {
49
- rules : Object . assign ( { } , nextConfig ?. experimental ?. turbo ?. rules , {
50
- '*.mdx' : {
51
- loaders : [ loader ] ,
52
- as : '*.tsx' ,
53
- } ,
54
- } ) ,
55
- resolveAlias : Object . assign (
56
- { } ,
57
- nextConfig ?. experimental ?. turbo ?. resolveAlias ,
58
- {
59
- 'next-mdx-import-source-file' :
60
- '@vercel/turbopack-next/mdx-import-source' ,
61
- }
62
- ) ,
50
+ nextConfig . turbopack = Object . assign ( { } , nextConfig ?. turbopack , {
51
+ rules : Object . assign ( { } , nextConfig ?. turbopack ?. rules , {
52
+ '*.mdx' : {
53
+ loaders : [ loader ] ,
54
+ as : '*.tsx' ,
55
+ } ,
56
+ } ) ,
57
+ resolveAlias : Object . assign ( { } , nextConfig ?. turbopack ?. resolveAlias , {
58
+ 'next-mdx-import-source-file' :
59
+ '@vercel/turbopack-next/mdx-import-source' ,
63
60
} ) ,
64
61
} )
65
62
}
0 commit comments