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
f3ee8bfa
Commit
f3ee8bfa
authored
Mar 27, 2026
by
Luke Sandberg
Committed by
Luke Sandberg
Apr 09, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build
parent
a4cce236
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
errors.json
packages/next/errors.json
+7
-1
generated-native.d.ts
packages/next/src/build/swc/generated-native.d.ts
+5
-0
wasm-manager.ts
packages/next/src/build/swc/wasm-manager.ts
+3
-3
No files found.
packages/next/errors.json
View file @
f3ee8bfa
...
...
@@ -1158,5 +1158,11 @@
"1157"
:
"`unstable_io()` requires the `experimental.unstableIO` option to be enabled in your Next.js config."
,
"1158"
:
"The prerender-ppr work unit type has been removed. This code path should be unreachable."
,
"1159"
:
"WASM instance %s not found"
,
"1160"
:
"WASM module %s not found"
"1160"
:
"WASM module %s not found"
,
"1161"
:
"Unexpected optype: %s"
,
"1162"
:
"Module %s not found"
,
"1163"
:
"No active instance for memory operation"
,
"1164"
:
"Unknown request type: %s"
,
"1165"
:
"Instance %s not found"
,
"1166"
:
"wasm-worker must be run as a worker thread"
}
packages/next/src/build/swc/generated-native.d.ts
View file @
f3ee8bfa
...
...
@@ -618,6 +618,11 @@ export declare function transformSync(
isModule
:
boolean
,
options
:
Buffer
):
object
/**
* Register the NAPI-based WASM plugin runtime.
* Must be called from JS before any SWC transforms that use plugins.
*/
export
declare
function
registerWasmPluginRuntime
(
jsManager
:
object
):
void
export
declare
function
startTurbopackTraceServer
(
path
:
string
,
port
?:
number
|
undefined
|
null
...
...
packages/next/src/build/swc/wasm-manager.ts
View file @
f3ee8bfa
...
...
@@ -11,7 +11,7 @@
* workers, and provide the shared memory pointers to Rust for direct access.
*/
import
{
Worker
}
from
'worker_threads'
import
{
Worker
,
type
TransferListItem
}
from
'worker_threads'
import
path
from
'path'
// ---------------------------------------------------------------------------
...
...
@@ -107,7 +107,7 @@ function createWorker(): WorkerEntry {
function
sendToWorker
(
entry
:
WorkerEntry
,
msg
:
any
,
transfer
?:
ArrayBuffer
[]
transfer
?:
TransferListItem
[]
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
id
=
nextMessageId
++
...
...
@@ -261,7 +261,7 @@ export const wasmManager = {
const
ab
=
data
.
buffer
.
slice
(
data
.
byteOffset
,
data
.
byteOffset
+
data
.
byteLength
)
)
as
ArrayBuffer
return
sendToWorker
(
workers
[
workerIndex
],
{
type
:
'writeMemory'
,
instanceId
,
ptr
,
data
:
ab
},
...
...
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