File tree 1 file changed +5
-9
lines changed
packages/next/src/server/lib/router-utils
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1560,10 +1560,8 @@ async function startWatcher(opts: SetupOpts) {
1560
1560
false ,
1561
1561
route . dataEndpoint ,
1562
1562
( pageName ) => {
1563
- if ( process . env . NEXT_HMR_TIMING ) {
1564
- // Report the next compilation again
1565
- readyIds . delete ( page )
1566
- }
1563
+ // Report the next compilation again
1564
+ readyIds . delete ( page )
1567
1565
return {
1568
1566
event : HMR_ACTIONS_SENT_TO_BROWSER . SERVER_ONLY_CHANGES ,
1569
1567
pages : [ pageName ] ,
@@ -1643,10 +1641,8 @@ async function startWatcher(opts: SetupOpts) {
1643
1641
// There will be another update without errors eventually
1644
1642
return
1645
1643
}
1646
- if ( process . env . NEXT_HMR_TIMING ) {
1647
- // Report the next compilation again
1648
- readyIds . delete ( page )
1649
- }
1644
+ // Report the next compilation again
1645
+ readyIds . delete ( page )
1650
1646
return {
1651
1647
action :
1652
1648
HMR_ACTIONS_SENT_TO_BROWSER . SERVER_COMPONENT_CHANGES ,
@@ -1739,7 +1735,7 @@ async function startWatcher(opts: SetupOpts) {
1739
1735
warnings : [ ] ,
1740
1736
} )
1741
1737
1742
- if ( process . env . NEXT_HMR_TIMING && hmrEventHappened ) {
1738
+ if ( hmrEventHappened ) {
1743
1739
const time = updateMessage . value . duration
1744
1740
const timeMessage =
1745
1741
time > 2000 ? `${ Math . round ( time / 100 ) / 10 } s` : `${ time } ms`
You can’t perform that action at this time.
0 commit comments