Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 4, 2024
1 parent 2b6441b commit 32b0c98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1539,11 +1539,13 @@ export default async function build(
let shutdownPromise = Promise.resolve()
if (!isGenerateMode) {
if (turboNextBuild) {
console.time('Turbopack build')
const {
duration: compilerDuration,
shutdownPromise: p,
...rest
} = await turbopackBuild()
console.timeEnd('Turbopack build')
shutdownPromise = p
traceMemoryUsage('Finished build', nextBuildSpan)

Expand All @@ -1568,6 +1570,7 @@ export default async function build(
buildStage: 'compile-server',
})

console.time('webpack build')
const serverBuildPromise = webpackBuild(useBuildWorker, [
'server',
]).then((res) => {
Expand Down Expand Up @@ -1635,6 +1638,7 @@ export default async function build(
durationInSeconds += res.duration
traceMemoryUsage('Finished client compilation', nextBuildSpan)
})
console.timeEnd('webpack build')

Log.event('Compiled successfully')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ impl Operation for ConnectChildOperation {
task_id,
ref mut aggregation_update,

Check failure on line 85 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / rust check / build

unused variable: `aggregation_update`

Check warning on line 85 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / test cargo unit / build

unused variable: `aggregation_update`

Check warning on line 85 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / test cargo unit / build

unused variable: `aggregation_update`
} => {
if aggregation_update.process(ctx) {
// TODO check for active
self = ConnectChildOperation::ScheduleTask { task_id }
}
// if aggregation_update.process(ctx) {
// TODO check for active
self = ConnectChildOperation::ScheduleTask { task_id }
// }
}
ConnectChildOperation::ScheduleTask { task_id } => {
let mut should_schedule;
Expand Down

0 comments on commit 32b0c98

Please sign in to comment.