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 cf79642 commit 1bd005d
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 @@ -67,10 +67,10 @@ impl Operation for ConnectChildOperation {
task_id,
ref mut 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 1bd005d

Please sign in to comment.