Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
bf3b84bd
Unverified
Commit
bf3b84bd
authored
Apr 17, 2025
by
Will Binns-Smith
Committed by
GitHub
Apr 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`@next/mdx`: Use stable turbopack config options (#78261)
parent
35e6080e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
index.js
packages/next-mdx/index.js
+13
-16
No files found.
packages/next-mdx/index.js
View file @
bf3b84bd
...
...
@@ -23,6 +23,9 @@ module.exports =
},
}
/**
* @type {import('next').NextConfig}
*/
let
nextConfig
=
Object
.
assign
({},
inputConfig
,
{
webpack
(
config
,
options
)
{
config
.
resolve
.
alias
[
'next-mdx-import-source-file'
]
=
[
...
...
@@ -44,22 +47,16 @@ module.exports =
})
if
(
process
.
env
.
TURBOPACK
)
{
nextConfig
.
experimental
=
Object
.
assign
({},
nextConfig
?.
experimental
,
{
turbo
:
Object
.
assign
({},
nextConfig
?.
experimental
?.
turbo
,
{
rules
:
Object
.
assign
({},
nextConfig
?.
experimental
?.
turbo
?.
rules
,
{
'*.mdx'
:
{
loaders
:
[
loader
],
as
:
'*.tsx'
,
},
}),
resolveAlias
:
Object
.
assign
(
{},
nextConfig
?.
experimental
?.
turbo
?.
resolveAlias
,
{
'next-mdx-import-source-file'
:
'@vercel/turbopack-next/mdx-import-source'
,
}
),
nextConfig
.
turbopack
=
Object
.
assign
({},
nextConfig
?.
turbopack
,
{
rules
:
Object
.
assign
({},
nextConfig
?.
turbopack
?.
rules
,
{
'*.mdx'
:
{
loaders
:
[
loader
],
as
:
'*.tsx'
,
},
}),
resolveAlias
:
Object
.
assign
({},
nextConfig
?.
turbopack
?.
resolveAlias
,
{
'next-mdx-import-source-file'
:
'@vercel/turbopack-next/mdx-import-source'
,
}),
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment