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
a34bfcdd
Unverified
Commit
a34bfcdd
authored
Feb 29, 2024
by
Leah
Committed by
GitHub
Feb 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: don't emit issues via websocket for now (#59024)
parent
9f72146d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
index.ts
packages/next/src/build/swc/index.ts
+1
-1
hot-reloader-turbopack.ts
packages/next/src/server/dev/hot-reloader-turbopack.ts
+6
-0
No files found.
packages/next/src/build/swc/index.ts
View file @
a34bfcdd
...
@@ -573,7 +573,7 @@ interface BaseUpdate {
...
@@ -573,7 +573,7 @@ interface BaseUpdate {
path
:
string
path
:
string
}
}
diagnostics
:
unknown
[]
diagnostics
:
unknown
[]
issues
:
unknown
[]
issues
:
Issue
[]
}
}
interface
IssuesUpdate
extends
BaseUpdate
{
interface
IssuesUpdate
extends
BaseUpdate
{
...
...
packages/next/src/server/dev/hot-reloader-turbopack.ts
View file @
a34bfcdd
...
@@ -313,6 +313,12 @@ export async function createHotReloaderTurbopack(
...
@@ -313,6 +313,12 @@ export async function createHotReloaderTurbopack(
}
}
function
sendTurbopackMessage
(
payload
:
TurbopackUpdate
)
{
function
sendTurbopackMessage
(
payload
:
TurbopackUpdate
)
{
// TODO(PACK-2049): For some reason we end up emitting hundreds of issues messages on bigger apps,
// a lot of which are duplicates.
// They are currently not handled on the client at all, so might as well not send them for now.
payload
.
diagnostics
=
[]
payload
.
issues
=
[]
for
(
const
client
of
clients
)
{
for
(
const
client
of
clients
)
{
clientStates
.
get
(
client
)?.
turbopackUpdates
.
push
(
payload
)
clientStates
.
get
(
client
)?.
turbopackUpdates
.
push
(
payload
)
}
}
...
...
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