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
717175bf
Commit
717175bf
authored
Oct 27, 2025
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write tests, flip default the other way
parent
f5cb77e7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
4 deletions
+69
-4
next_config.rs
crates/next-core/src/next_config.rs
+1
-1
page.tsx
examples/with-turbopack/app/page.tsx
+0
-3
whole-app-graph-basic.test.ts
test/development/basic/hmr/whole-app-graph-basic.test.ts
+17
-0
whole-app-graph-error-recovery.test.ts
...elopment/basic/hmr/whole-app-graph-error-recovery.test.ts
+17
-0
whole-app-graph-full-reload.test.ts
...development/basic/hmr/whole-app-graph-full-reload.test.ts
+17
-0
whole-app-graph-hot-module-reload.test.ts
...pment/basic/hmr/whole-app-graph-hot-module-reload.test.ts
+17
-0
No files found.
crates/next-core/src/next_config.rs
View file @
717175bf
...
@@ -2209,7 +2209,7 @@ impl NextConfig {
...
@@ -2209,7 +2209,7 @@ impl NextConfig {
NextMode
::
Development
=>
self
NextMode
::
Development
=>
self
.experimental
.experimental
.turbopack_use_whole_app_module_graph_in_dev
.turbopack_use_whole_app_module_graph_in_dev
.unwrap_or
(
tru
e
),
.unwrap_or
(
fals
e
),
NextMode
::
Build
=>
true
,
NextMode
::
Build
=>
true
,
}))
}))
}
}
...
...
examples/with-turbopack/app/page.tsx
View file @
717175bf
import
{
foo
}
from
"./foo"
;
export
default
function
Page
()
{
export
default
function
Page
()
{
/** @ts-ignore */
foo
();
return
<
h1
>
Hello, Next.js!
</
h1
>;
return
<
h1
>
Hello, Next.js!
</
h1
>;
}
}
test/development/basic/hmr/whole-app-graph-basic.test.ts
0 → 100644
View file @
717175bf
import
{
runBasicHmrTest
}
from
'./run-basic-hmr-test.util'
const
nextConfig
=
{
basePath
:
''
,
assetPrefix
:
''
,
experimental
:
{
turbopackUseWholeAppModuleGraphInDev
:
true
,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(
process
.
env
.
IS_TURBOPACK_TEST
?
describe
:
describe
.
skip
)(
`HMR - basic with whole app graph, nextConfig:
${
JSON
.
stringify
(
nextConfig
)}
`
,
()
=>
{
runBasicHmrTest
(
nextConfig
)
}
)
test/development/basic/hmr/whole-app-graph-error-recovery.test.ts
0 → 100644
View file @
717175bf
import
{
runErrorRecoveryHmrTest
}
from
'./run-error-recovery-hmr-test.util'
const
nextConfig
=
{
basePath
:
''
,
assetPrefix
:
''
,
experimental
:
{
turbopackUseWholeAppModuleGraphInDev
:
true
,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(
process
.
env
.
IS_TURBOPACK_TEST
?
describe
:
describe
.
skip
)(
`HMR - error recovery with whole app graph, nextConfig:
${
JSON
.
stringify
(
nextConfig
)}
`
,
()
=>
{
runErrorRecoveryHmrTest
(
nextConfig
)
}
)
test/development/basic/hmr/whole-app-graph-full-reload.test.ts
0 → 100644
View file @
717175bf
import
{
runFullReloadHmrTest
}
from
'./run-full-reload-hmr-test.util'
const
nextConfig
=
{
basePath
:
''
,
assetPrefix
:
''
,
experimental
:
{
turbopackUseWholeAppModuleGraphInDev
:
true
,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(
process
.
env
.
IS_TURBOPACK_TEST
?
describe
:
describe
.
skip
)(
`HMR - full reload with whole app graph, nextConfig:
${
JSON
.
stringify
(
nextConfig
)}
`
,
()
=>
{
runFullReloadHmrTest
(
nextConfig
)
}
)
test/development/basic/hmr/whole-app-graph-hot-module-reload.test.ts
0 → 100644
View file @
717175bf
import
{
runHotModuleReloadHmrTest
}
from
'./run-hot-module-reload-hmr-test.util'
const
nextConfig
=
{
basePath
:
''
,
assetPrefix
:
''
,
experimental
:
{
turbopackUseWholeAppModuleGraphInDev
:
true
,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(
process
.
env
.
IS_TURBOPACK_TEST
?
describe
:
describe
.
skip
)(
`HMR - hot module reload with whole app graph, nextConfig:
${
JSON
.
stringify
(
nextConfig
)}
`
,
()
=>
{
runHotModuleReloadHmrTest
(
nextConfig
)
}
)
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